Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Сhange «Rotation» via Extendscript?

New Here ,
Jan 09, 2023 Jan 09, 2023

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?
TOPICS
Error or problem , Expressions , How to , Scripting
381
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jan 09, 2023 Jan 09, 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 web

...
Translate
New Here ,
Jan 09, 2023 Jan 09, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 09, 2023 Jan 09, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines