-
concatenated strings as identifiers
Hi guys how would i go about using concatenated strings as an identifier ?
These varibles are made up of concatenated strings…SmokeStartTime
SmokeEmitTime
SmokeEndTimehowever they seem to be executing as strings rather than pointing to the property which they denote… therefore the ease functions fail because of non numeric input…
How do i get these varibles to behave as identifiers not strings… please and thank you , this has been irritating me ALL day so any help appreciated.nameOfComp = 'comp("'+thisComp.layer("SOURCE_LAYER").text.sourceText +'").layer("controlLayer")';
SmokeStartTime = [nameOfComp+'.marker.key("STARTEMIT").time'];
SmokeEmitTime = [nameOfComp+'.marker.key("EMIT").time'];
SmokeEndTime = [nameOfComp+'.marker.key("ENDEMIT").time'];
SmokeStartValue= [00];
SmokeEmitValue= [20];
SmokeEndValue= [00];if(time<SmokeStartTime){
value =[0];
} else {easeIn(time,SmokeStartTime,SmokeEmitTime,SmokeStartValue,SmokeEmitValue);easeOut(time,SmokeEmitTime,SmokeEndTime,SmokeEmitValue,SmokeEndValue);}