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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Identify a track

    SDK Help
    0
    2
    228
    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 14/07/2003 at 16:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ; Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      from inside a tags execute funtion
      im looking through the main objects tracks.
      im going through them in sequence and id like to fond out what each track is doing.
      for example  ,id like to be able to tell if a track is part of a Vector and if so , if its part of move , scale or rotate.
      thanks in advance for any help

      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 24/07/2003 at 19:06, xxxxxxxx wrote:

        hi paul...
        here an example for the postion track:
           // EYEPOSSAMPLES
           var trEyePos = pObject->GetFirstTrack();
           while(trEyePos != NULL)
           {
            var objClass = getclass(trEyePos);
            if (objClass == PositionTrack)
            {
             WriteChunk(CHUNK_LIGHT_EYE_MOVEMENT);
             println("has position track");
             var seqEyePos = trEyePos->GetFirstSequence();
             while(seqEyePos != NULL)
             {
              var iKeyCounter = 0;
              var keyKey = seqEyePos->GetFirstKey();
              while(keyKey != NULL)
              {
               iKeyCounter++;
               keyKey = keyKey->GetNext();
              }
              println("has position keys: ", iKeyCounter);
              g_pFile->WriteLong(iKeyCounter);
              keyKey = seqEyePos->GetFirstKey();
              while(keyKey != NULL)
              {
               var timeTime = keyKey->GetTime();
               var fSecond = timeTime->GetSecond();
               var vecVector = keyKey->GetP();
        //       println("time: ", fSecond, vecVector);
               g_pFile->WriteReal(fSecond);
               g_pFile->WriteReal(vecVector.x);
               g_pFile->WriteReal(vecVector.y);
               g_pFile->WriteReal(vecVector.z);
               keyKey = keyKey->GetNext();
              }

        seqEyePos = seqEyePos->GetNext();
             }
            }
            trEyePos = trEyePos->GetNext();
           }

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