ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Group shapes

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mahdi Mor
Group shapes
on Jun 16, 2017 at 5:19:25 pm

how to group shapes with script??
i want to group highlighted shapes with script.
thanks



Return to posts index

Dan Ebberts
Re: Group shapes
on Jun 16, 2017 at 5:50:38 pm

The only way I know of is to select the shapes and then have the script execute the "Group Shapes" menu command.

Dan



Return to posts index

Mahdi Mor
Re: Group shapes
on Jun 16, 2017 at 6:46:55 pm

thanks , 1 more Q .
how can i select them (by script ).??


Return to posts index


Dan Ebberts
Re: Group shapes
on Jun 16, 2017 at 7:12:05 pm

Something like this, probably:


var myContents = myLayer.property("ADBE Root Vectors Group");
myLayer.selected = false;
for (var i = 1; i <= myContents.numProperties; i++){
myContents.property(i).selected = true;
}


It might depend on how your shape layer is structured.

Dan



Return to posts index

Mahdi Mor
Re: Group shapes
on Jun 16, 2017 at 7:22:42 pm

yay ,thank you very much.


Return to posts index

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