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

[Scripting] Is there any way to get only the properties available on timeline for selected layers?

Contributor ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Is there any way that I can get only properties with are available in timeline for selected Layer? I don't want to collect the names of properties like Markers and other properties which aren't available for user to see....

 

To be exact I write this code below.

var project = app.project;
var activeItem = project.activeItem;
var firstSelectedLayer = activeItem.selectedLayers[0];

var availableProperties = [];

for (i=1; i<=firstSelectedLayer.numProperties; i++){
    availableProperties.push(firstSelectedLayer.property(i).name+"\n");
    }
alert(availableProperties);

 

If I run this code I'll get properties available for newly created solid layer as below.

Marker
,Time Remap
,Motion Trackers
,Masks
,Effects
,Transform
,Layer Styles
,Geometry Options
,Geometry Options
,Audio
,Data
,Master Properties
,Sets

In this list TRANSFORM is the only property is visible in the timeline for the selected Solid layer. But It shows all the invisible  properties for the solid. Same goes for text layer and other layers. I just want to list out the Transform property for this solid. Because it's the only visible property on timeline. If the solid has mask it should also show Mask and Transform properties. I don't want to check if the solid has mask  or effects or markers for each time. Is there any simple method to do it???

 

 

Thanks in advance.

TOPICS
How to , Scripting

Views

648

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
Engaged ,
May 06, 2020 May 06, 2020

Copy link to clipboard

Copied

the Property base class has an attribute "elided". I think that does what you want.

http://docs.aenhancers.com/properties/propertybase/#propertybase-elided

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
Contributor ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

LATEST

Thank you for your response. I've updated the question with some brief explaination. Hope this time you will get my question pretty straight. elided just used to find whether if it's a group or property. But I want to know more. I mean the property actually visible in selected Layer.

 

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