THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/09/2010 at 14:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12.021
Platform:
Language(s) : PYTHON ;
---------
I'm working on a plugin that imports animation data, and need to allocate "generic" tracks that don't necessarily exist as C4D parameters. I've figured out that it more or less works using code like this:
trackX = c4d.CTrack(obj,c4d.DescID(c4d.DescLevel(4,c4d.DTYPE_VECTOR,0),c4d.DescLevel(c4d.VECTOR_X,c4d.DTYPE_REAL,0)))
trackY = c4d.CTrack(obj,c4d.DescID(c4d.DescLevel(4,c4d.DTYPE_VECTOR,0),c4d.DescLevel(c4d.VECTOR_Y,c4d.DTYPE_REAL,0)))
trackZ = c4d.CTrack(obj,c4d.DescID(c4d.DescLevel(4,c4d.DTYPE_VECTOR,0),c4d.DescLevel(c4d.VECTOR_Z,c4d.DTYPE_REAL,0)))
My questions are:
- Why does the first DescLevel need an id of 4? I just found that value from the ASCII animation import but haven't found a related constant or any reasoning behind the value.
- How do I name the vector (the actual folder containing the three vector tracks in the timeline)?
- How can I set the data type to a percent (not in a vector, just for a single track)?
Thanks in advance.