-
Retrieve a part of a property name
Hello,
I would like to split a property name to obtain only the number in the name.
In the code below, maPropGroup is egual to “Outro01”. I want to split this text just to obtain the “01”. But here my result is “,01″….. I don’t understand!!Here is my code :
var maProp = thisComp.layer(“test”).text.animator(“Outro01”).selector(“Sélecteur d’expressions 1”);
var reg_exp = /Outro/;
var maPropGroup = maProp.propertyGroup(1).propertyGroup(1).name;
var monChiffre = maPropGroup.split(“Outro”);
monChiffre;Thank you in advance for your help!