Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Allocating generic tracks

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 232 Views
    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 Offline
      Helper
      last edited by

      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.

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

        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

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

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

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