THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/01/2011 at 10:34, xxxxxxxx wrote:
I'm trying to animate programmatically from Python. It seems I need to be able to create multiple CTrack objects for each object I want to animate (and I will need to animate a camera FOV as part of this).
But I do not see any python initializer/constructor for CTrack or CCurve --- I don't see any code to do it from BaseList2D(id), and that would not be enough since it that would not have a way to set the descriptor information or category information.
Obviously if I can't animate, it's going to look pretty bad for an animation program!
On 19/01/2011 at 16:26, xxxxxxxx wrote:
The new method is there - not sure why it's not in the docs.
The syntax is:
trackX = c4d.CTrack(object, descID)
The DescID is the internal description ID for the track you want to add. To add a Position X track for instance it's:
c4d.DescID(c4d.DescLevel(c4d.ID_BASEOBJECT_POSITION, c4d.DTYPE_VECTOR, 0), c4d.DescLevel(c4d.VECTOR_X, c4d.DTYPE_REAL, 0))
On 19/01/2011 at 16:30, xxxxxxxx wrote:
Thx, it will be added in the next documentation update.