Copy link to clipboard
Copied
Hello, I am a newby in scripting for AE so this is surely a dumb question...
I have an issue : when I install my .jsx scrip in \ScriptUI Panels I can launch it through the window panel in AE, thats nice.
But my problem is that it opens an empty dockable panel with the same name than my script...
Do you guys have an idea on how to create a button in that empty panel (and not in a new one) that would launch my script ?
Thanks !
When a script is launched as a panel, AE provides the panel. So you have to build your UI into that panel rather than just creating a new window like you would if launched from the File > Scripts menu.
Here are a couple of examples that check if the script received a panel, using that if so, otherwise creating a new window. I'm sure I've posted a framework like this on here in the past, and probably countless others too, so there should be plenty of examples to find.
https://www.goodboy.ninja/blog/the-secret-to-a-dockable-scriptui-panel
...Copy link to clipboard
Copied
When a script is launched as a panel, AE provides the panel. So you have to build your UI into that panel rather than just creating a new window like you would if launched from the File > Scripts menu.
Here are a couple of examples that check if the script received a panel, using that if so, otherwise creating a new window. I'm sure I've posted a framework like this on here in the past, and probably countless others too, so there should be plenty of examples to find.
https://www.goodboy.ninja/blog/the-secret-to-a-dockable-scriptui-panel
Copy link to clipboard
Copied
Okay thanks ! That was fast 🙂
Copy link to clipboard
Copied
Thank you! it was really helpful!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more