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

    How to GePrint BaseTime?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 436 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 21/02/2011 at 15:48, xxxxxxxx wrote:

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

      ---------
      Can anyone tell me the correct way to print the result of the GetTime() function to the console please?

      BaseObject* obj = doc->GetActiveObject(); // get the active object  
        if(!obj) return 0;    
        CTrack *track = obj->FindCTrack(DescID(DescLevel(ID_BASEOBJECT_REL_POSITION,DTYPE_VECTOR,0), DescLevel(VECTOR_X,DTYPE_REAL,0))); // The Position.X track  
        if(!track)return 0;  
        CKey *Key1 = track->GetCurve()->GetKey(0);    
        BaseTime* result = &Key1->GetTime();  
          
        GePrint(result); //<-----How do I print the result of Key1->GetTime()?   
      

      -ScottA

      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 21/02/2011 at 16:01, xxxxxxxx wrote:

        Depends which information from the basetime you would like to print out

        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 21/02/2011 at 16:15, xxxxxxxx wrote:

          I don't really know how to answer that.

          I'm trying out some of the animation functions in the C++ API.
          One of them is the GetTime() function.
          And I was curious to see what the result is from this function in an actual real world example.

          So I guess my answer to which information I'd like to see would be:  All of them. 🙂

          -ScottA

          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 21/02/2011 at 16:18, xxxxxxxx wrote:

            Then look up the BaseTime class in the docs and simply print them out by calling the functions like GetFrame or calculate anything else you need from the denominator and numerator. The BaseTime is really just an interface or container class and not as explicit as a value for example.

            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 21/02/2011 at 16:50, xxxxxxxx wrote:

              Oh I see.
              It sort of wraps the results of two different functions into one function.

              Thanks,
              -ScottA

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