Move/Translate GroupItem w/ masks and effects?


all,

 

i have document single layer , single group (groupitem) in layer.

unfortunately, didn't create .ai file, don't know in group; however, there appears bunch of complex clipping masks , gradient effects, etc. nested within it.

i've scripted few tasks resizing group no ill effect... in other words, works expected:

 

app.activedocument.activelayer.pathitems[0].resize(50,50); 

 

however, try move/translate/reposition group, effects/masks seem go wonky, i've tried of below no success (200 arbitrary test):

 

app.activedocument.activelayer.pathitems[0].left = 200; app.activedocument.activelayer.pathitems[0].translate(200,0); 

 

i have no problem moving group around on document mouse... effects/masks still nice , clean, i'm confused why can't same thing via javascript.

try following:

 

app.activedocument.activelayer.groupitems[0].resize(50,50);

 

app.activedocument.activelayer.groupitems[0].left = 200;


app.activedocument.activelayer.groupitems[0].translate(200,0);



More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?