ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Add an ellipse via script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Arne Münch
Add an ellipse via script
on May 7, 2020 at 2:03:06 pm

Hi
I am using

app.project.activeItem.selectedLayers[0].property("Contents").addProperty("ADBE Vector Group");

to add a shapelayer group inside an existing shapelayer. But it puts it under the existing group. I want to create it above the existing group.
Someone know how to do this?


Return to posts index

Dan Ebberts
Re: Add an ellipse via script
on May 7, 2020 at 2:26:05 pm

I'm not sure if this does what you want, but give it a try:

var myGroup = app.project.activeItem.selectedLayers[0].property("Contents").addProperty("ADBE Vector Group");
myGroup.moveTo(1);

Dan



Return to posts index

Arne Münch
Re: Add an ellipse via script
on May 31, 2020 at 9:00:06 am

I just forget to say thank you.
This was really helpful.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]