Hi,
A. Is it possible to create custom-right-click-menu-item for bridge? something like attached?
B. If yes to A above, any sample-code would be great. I am trying to achieve a custom 'place->In Photoshop(Top Layer Only)' so that when the selected image(which could be PSD/TIF) is placed on current document in photoshop, only the top layer is placed and not all layers (default function is to place the selected image as is).
C. any help to pass custom script to photoshop (from bridge) when the custom menu-item is clicked would be great, if possible.
Thanks In Advance
Custom Right Click Item
-
- Posts: 20
- Joined: Wed Feb 22, 2017 5:37 pm
- Location: Paraguay
Custom Right Click Item
- Attachments
-
- bridge-q.png (63.63 KiB) Viewed 17136 times
Re: Custom Right Click Item
It's partially possible so inserting your command not inside Place item but just somewhere over / under that Place item.
I didn't do that long time, but if you are interested write private message to me so I'll try to recall it when I have time
I didn't do that long time, but if you are interested write private message to me so I'll try to recall it when I have time

-
- Posts: 20
- Joined: Wed Feb 22, 2017 5:37 pm
- Location: Paraguay
Re: Custom Right Click Item
PM send. Thanks in advance.
-
- Posts: 20
- Joined: Wed Feb 22, 2017 5:37 pm
- Location: Paraguay
Re: Custom Right Click Item
Code: Select all
if (MenuElement.find ('tsMenu1') == null){
var tsMenu1Cmd = new MenuElement( "menu", "My Custom Menu", "at the end of Thumbnail", "tsMenu1");
var tsSubMenu1Cmd= new MenuElement( "command", "My Custom Sub Menu", "at the end of tsMenu1" , "tsSubMenu1" );
tsSubMenu1Cmd.onSelect = function() {
alert('you clicked the first submenu');
// your code here
}
}
thanks everyone for your help.