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

access to property below

Community Beginner ,
Nov 29, 2023 Nov 29, 2023

I want to access the rotation property of a rectangle below, the easiest way is to use the pick whip, but it will always access the same “Rectangle 1”. I want to duplicate the group several times and always take the rotation of a rectangle below, not the "rectangle 1"


I normally access the properties of a layer below using "thisComp.layer(thisLayer, 1).transform.rotation" but I'm not sure if it works the same

 

screenshot.png

TOPICS
Expressions , FAQ , Resources , Scripting
244
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

Community Expert , Nov 29, 2023 Nov 29, 2023

Try this:

idx = thisProperty.propertyGroup(2).propertyIndex;
thisProperty.propertyGroup(3)(idx+1)("Transform")("Rotation")
Translate
Community Expert ,
Nov 29, 2023 Nov 29, 2023

Try this:

idx = thisProperty.propertyGroup(2).propertyIndex;
thisProperty.propertyGroup(3)(idx+1)("Transform")("Rotation")
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
Community Beginner ,
Nov 29, 2023 Nov 29, 2023
LATEST

worked perfectly, thanks!

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