Skip to main content
Participant
January 9, 2023
Answered

Сhange «Rotation» via Extendscript?

  • January 9, 2023
  • 1 reply
  • 557 views

I'm really confused, I have all these things working:

layer.property("ADBE Transform Group").property("ADBE Position").setValue([1,1]);
layer.property("ADBE Transform Group").property("ADBE Scale").setValue([1,1]);
layer.property("ADBE Transform Group").property("ADBE Anchor Point").setValue([1,1]);

but it doesn't work:
layer.property("ADBE Transform Group").property("ADBE Rotation").setValue(99);
 I'm so tired, hooow change rotation?
This topic has been closed for replies.
Correct answer Paul Tuersley

Or it you're using the matchname as with your others, it's ADBE Rotate Z. Matchnames (i.e. scripting's internal names for the properties) are generally preferable as they aren't app language specific.

 

You could always use a simple script that will tell you the matchname of the selected property if you run into this again:

alert(app.project.activeItem.selectedProperties[0].matchName);

 

There's a great script by Jeff Almasol called GimmePropPaths which helps a lot with this but I don't think his website is up these days so not sure there's anywhere it's easily obtainable.

1 reply

mujlaxAuthor
Participant
January 9, 2023

omg this works
layer
.property("ADBE Transform Group").property("Rotation").setValue(99);

Paul TuersleyCorrect answer
Inspiring
January 9, 2023

Or it you're using the matchname as with your others, it's ADBE Rotate Z. Matchnames (i.e. scripting's internal names for the properties) are generally preferable as they aren't app language specific.

 

You could always use a simple script that will tell you the matchname of the selected property if you run into this again:

alert(app.project.activeItem.selectedProperties[0].matchName);

 

There's a great script by Jeff Almasol called GimmePropPaths which helps a lot with this but I don't think his website is up these days so not sure there's anywhere it's easily obtainable.