Allocating generic tracks
-
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.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2010 at 01:08, xxxxxxxx wrote:
What do you mean with "generic" track, a plugin track?
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2010 at 08:48, xxxxxxxx wrote:
I'm just creating data tracks that don't necessarily match a real description element, like you get when performing the ASCII animation import build into C4D. The user can copy the keys for those tracks to a real C4D one, but in many cases I can't tell what track they want it on (just like the ASCII animation import).