-
Does anybody know how to isolate the name — not the value — of a given variable?
Hey folks, hope all is well. I’m trying to write a function in a sourceText expression which would basically look like this:
function exampleFunction(exampleInput){string = exampleInput.name + "~" + exampleInput.value;
return string}
Thus, if I had a variable named creativeCow with a value of 99, calling exampleFunction(creativeCow) would return “creativeCow~99” as that layer’s text output.This is one of those things where I just typed it out assuming the syntax would be there, and it took me a minute to realize that apparently… it’s… just not possible?
Am I nuts?
Thanks.