Retrieve TimeTrack link in BaseSequence

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,

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.