Skip to main content
March 24, 2016
Question

Merge 2 or several scripts panel into one single panel

  • March 24, 2016
  • 3 replies
  • 796 views

Hi

I currently have several scripts dock (With buttons and ui)  in my after effects workspace. Currently, it's kind a mess when i maximize my layer panel and I would like to merge them into one single panel. (For example a large horizontale panel with all the script place from left to right).

Is there a easy way to achieve that ? I was think of writing some code to tell the space position of the script ( Group ?) and put the entire .JSX code between them :

Code
Code

Code
-----
First script
----
Code
---
Second script
---
Code
----
...

Thank you

This topic has been closed for replies.

3 replies

Smallpath2013
Inspiring
April 1, 2016

Actually you can make it even if you don't have access to the resource.

Use Window.find() to get the window,then loop in it to get its children and event handlers as JSON-format data or anything like that.Finally you can import that data to the new Window and bind all the event such as 'onClick' to the origin control of origin Window.The problem is that if the two scripts are jsxbin,you should not to close them in order to keep the merged script validate

Participant
March 24, 2016

It's def a lot of work, what I would do is standardize the layouts of each to be as simple and standard across each script.

Then rewrite per script. 

addGroupMyScript() - build group that contains all the code for UI and execution of that script [all functionality contained here.]

Then building a new palette, execute each function in the sequence you need.

You would at least have a system then to build individual script palettes and easily integrate them into a multi part palette.

Mathias Moehl
Community Expert
Community Expert
March 24, 2016

No, you cannot do it that way.

You really need to have access to the code of each individual script, understand how they build their UI (they might use different techniques) and merge them into one UI. Will definitely be lots of work.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects