How reset the rotation of a PageItem (or access it's matrix at least) ?


i'd apply rotation few pageitem instances, reset rotation first doesn't accumulate when run same script multiple times. i'm having hard time trying figure out how restet transformation matrix.

 

i've spotted this post close need it's bit old now.

it looks there isn't matrix property anymore.

this:

 

alert(app.activedocument.selection[0].matrix); 

ouputs undefined

 

i've tried

 

app.activedocument.selection[0].transform(app.getidentitymatrix()); 

but seems transformations accumulated, multiplied, not reset.

 

if want reset rotation of pageitem, how go doing ?

 

thanks,

george

not objects have matrix property, textframes , placeditems if remember correctly.

 

why don't use

app.activedocument.selection[0].rotate(angle);



More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support