Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

re-parent UI object

$
0
0

Hi! I'm trying to create a UI that moves some parts of the UI around. My solution right now is to copy the name of the object and all it's values, remove it from the current group and create a new object in a new group and apply the name and all the values to it. After everything is done I have to run "myPanel.layout.layout(true);" to re-render the UI. This works but it's not that handy. It doesn't work with all the available objects (like listboxes) and also the whole UI can flicker a lot when running the "myPanel.layout.layout(true);" code.

From what I have read the parent-object (ex. myButton.parent) is read only so I can't re-assign it to another parent by simply running myButton.parent = myGroup02 like you can with items in the project panel and their folders.

So I'm wondering if anyone knows any way to re-parent UI objects to new groups in a simple (or hard) way without deleting them first and recreate them?

 

Thanks!


Viewing all articles
Browse latest Browse all 2143


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>