Skip to main content
Participant
Nov 22, 2008 4:02 PM UTC
Answered

duplicate layer dialog box

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 is closed to new replies. Start a new post to keep the conversation going.
    zhpingwCorrect answer
    Participant
    Nov 24, 2008 1:36 AM UTC
    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 :)

    4 replies

    Participant
    Nov 24, 2008 2:20 PM UTC
    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
    Translate
    zhpingwCorrect answer
    Participant
    Nov 24, 2008 1:36 AM UTC
    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 :)

    Translate
    Known Participant
    Jul 12, 2020 9:52 AM UTC

    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

    Translate
    PECourtejoie
    Community Expert
    Community Expert
    Aug 13, 2020 10:58 AM UTC

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

    Translate