How do i copy a datastructure?
Posted: January 17th, 2008, 12:19 pm
Is there a general method? Btw the adobe scripting guide pdf displays all the objects, but has nothing about methods or commonly needed tecniques beyond a few sparse examples in the property object section etc.
what do i do to copy say
myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider")
i mean what kind of data structure is this ? i.e. var new ____ ?
for instance if i say var test = myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider")
then i do a change on that datastructure on the right hand side
myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider").setValueAtKey(5,41);
then test.keyValue(5) ends up being 41. THat means the = is not overloaded, i.e. there has to be an explicity copy function...
what do i do to copy say
myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider")
i mean what kind of data structure is this ? i.e. var new ____ ?
for instance if i say var test = myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider")
then i do a change on that datastructure on the right hand side
myComp.layer('Audio Amplitude')("Effects")("Both Channels")("Slider").setValueAtKey(5,41);
then test.keyValue(5) ends up being 41. THat means the = is not overloaded, i.e. there has to be an explicity copy function...