Forums › Adobe After Effects Expressions › propertyValueType returns a number
propertyValueType returns a number
Pierre-Alain Lécroart updated 9 months, 2 weeks ago 2 Members · 3 Posts
Pierre-Alain Lécroart
May 11, 2020 at 11:05 amHi !
Quick question, why this line :
selectedProperty.propertyValueType
Returns a number like “6414” or “6417” and not a value like explained here : https://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 🙂
Dan Ebberts
May 11, 2020 at 1:32 pmJust 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
Pierre-Alain Lécroart
May 14, 2020 at 10:52 amThanks, that’s the first time I encounter that kind of returned value. It works 🙂
Log in to reply.