ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

propertyValueType returns a number

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Pierre-Alain Lécroart
propertyValueType returns a number
on May 11, 2020 at 11:05:50 am

Hi !

Quick question, why this line :
selectedProperty.propertyValueType
Returns a number like "6414" or "6417" and not a value like explained here : http://docs.aenhancers.com/properties/property/#property-propertyvaluetype ?

I'm trying to make a condition if my property has 1, 2 or 3 values. If someone has a quick solution to this I'll be glad to know about that :)


Return to posts index

Dan Ebberts
Re: propertyValueType returns a number
on May 11, 2020 at 1:32:49 pm

Just ignore the numbers and use the names in the scripting guide, like this, and it will work out the way you want:

var pvt = myProperty.propertyValueType;
if (pvt == PropertyValueType.OneD || pvt == PropertyValueType.TwoD || etc...){
// do something
}


Dan



Return to posts index

Pierre-Alain Lécroart
Re: propertyValueType returns a number
on May 14, 2020 at 10:52:43 am

Thanks, that's the first time I encounter that kind of returned value. It works :)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]