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

access to property below

Community Beginner ,
Nov 29, 2023 Nov 29, 2023

Copy link to clipboard

Copied

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

Views

179

Translate

Translate

Report

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")

Votes

Translate

Translate
Community Expert ,
Nov 29, 2023 Nov 29, 2023

Copy link to clipboard

Copied

Try this:

idx = thisProperty.propertyGroup(2).propertyIndex;
thisProperty.propertyGroup(3)(idx+1)("Transform")("Rotation")

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

worked perfectly, thanks!

Votes

Translate

Translate

Report

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