Skip to main content
Participant
November 22, 2008
Answered

duplicate layer dialog box

  • November 22, 2008
  • 2 replies
  • 1657 views
in config. i want to have a DUPLICATE LAYER button just immediately create a duplicate layer, so its a oneclick process, but instead it pops up a dialog box for me to name the new layer, which i dont want to do, and it makes config. not be more efficient then dragging a layer to the new layer icon in my layers panel to create a duplicate layer.

does someone know what extra coding i could add, or whatever it takes so that a DUPLICATE LAYER button in config. will immediately add a dup layer?

tx for any input
gg
    This topic has been closed for replies.
    Correct answer zhpingw
    The simple way to remove the dialog box.
    First, open your panel in Configurator, click the "Duplicate Layer" button.
    In the "Inspector" of Configurator (Right side panel), click the pencil icon at the right side of the "script" attribute.
    A simple editor dialog will pop up, please find script code:
    executeAction( id16, desc4, DialogModes.ALL );

    Modify "DialogModes.ALL" to "DialogModes.NO".

    Then re-export the panel.

    Enjoy :)

    2 replies

    Participant
    November 24, 2008
    ahh, thats perfect! thank you greatly, so now i know anytime i want to supress dialogs just to change the DialogModes
    thats handy and i hope it helps others anytime they need to supress dialogs (perhaps a checkbox option to automatically enable things in configurator to show dialogs or supress them would be handy).

    now if you can figure the puzzle of how to add extra keystrokes to commands as i am now trying to get the MERGE VISIBLE to work with an extra ALT keystroke so i can have it do a MERGE VISIBLE ON NEW LAYER instead of MERGE VISIBLE (converting a sht+ctl+e into a sht+ctl+alt+e which i use alot)
    thanks again!
    gg
    zhpingwCorrect answer
    Participant
    November 24, 2008
    The simple way to remove the dialog box.
    First, open your panel in Configurator, click the "Duplicate Layer" button.
    In the "Inspector" of Configurator (Right side panel), click the pencil icon at the right side of the "script" attribute.
    A simple editor dialog will pop up, please find script code:
    executeAction( id16, desc4, DialogModes.ALL );

    Modify "DialogModes.ALL" to "DialogModes.NO".

    Then re-export the panel.

    Enjoy :)

    Known Participant
    July 12, 2020

    Hiya,
    I just started having this issue also.

    Can you please explain to me how to bypass the popup window (& just create the duplicate layer).

    I dont know what a Configurator panel is.  

     

    Thanks

    PECourtejoie
    Community Expert
    Community Expert
    August 13, 2020

    I'm moving this post to the Exchange community that deals with such problems...