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
    • Register
    • Login

    Retrieve TimeTrack link in BaseSequence

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 147 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 30/03/2005 at 10:53, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.503 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Does this remind you of a recent forum topic? 🙂

      I have tried both BaseContainer.GetLink(ID_BASESEQ_TIME, doc) and BaseSequence.GetParameter(ID_BASESEQ_TIME, gedata, 0), but neither appears to retrieve the link to the Time Track in the BaseSequence.

        
      BaseContainer* data = seq->GetDataInstance();  
      // Write TimeTrack:     TIMETRACK <Bool:Unlooped Area> "<TrackName>"  
      str = lvl+"	TIMETRACK ";  
      str += (data->GetBool(ID_BASESEQ_TIME_EXLOOP))?"T \"":"F \"";  
      BaseTrack* ttrk;  
      if (ttrk = static_cast<BaseTrack*>(data->GetLink(ID_BASESEQ_TIME, doc)))  
      {  
           str += ttrk->GetName();  
           ErrorException::Throw("TimeTrack Found!");  
      }  
      //GeData gdata;  
      //if (seq->GetParameter(DescID(ID_BASESEQ_TIME), gdata, 0)) str += gdata.GetLink(doc)->GetName();  
      str += "\"";  
      if (!WriteLine(str)) return FALSE;  
      

      This project is on a schedule, so please respond quickly!

      Thanks,

      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 30/03/2005 at 12:06, xxxxxxxx wrote:

        And, again, the issue was found. '0' in GetParameter seems to be a death-sentence. Must be 'NULL'. Don't see why this makes a difference.

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