Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Create CCurve

    PYTHON Development
    0
    3
    819
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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)
        obj.InsertTrackSorted(trackX)

        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))

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 19/01/2011 at 16:30, xxxxxxxx wrote:

          Thx, it will be added in the next documentation update.

          Cheers, Sebastian

          1 Reply Last reply Reply Quote 0
          • First post
            Last post