Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Set Min and MaxLoopTime

    SDK Help
    0
    2
    21
    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 17/06/2006 at 16:12, xxxxxxxx wrote:

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

      ---------
      Hi. I'm stuck going round in circles...
      I'm missing a step to set the Min and MaxLoopTime (PreViewRange).
      I can read the correct value but are unable to set it into the document.
      Many thanks for input.
      PS It looks as plus signs dissapear in the code. It should be a plus sign before "start" DS

      Cheers
      Lennart

      var start = 0;  
        
      var framerate = doc->GetFps();  
      var t = doc->GetTime()->GetSecond();  
      var lframe = doc->GetTime()->GetFrame(framerate);  
        
      var mintime = doc->GetMinTime()->GetFrame(doc->GetFps());  
      var maxtime = doc->GetMaxTime()->GetFrame(doc->GetFps());  
        
      var minloop = mintime + start;  
      var maxloop = maxtime - 1 + start;  
        
        
      println(mintime);  
        
      doc->SetLoopMinTime(minloop);  
      doc->SetLoopMaxTime(maxloop); 
      
      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 27/06/2006 at 03:24, xxxxxxxx wrote:

        minloop and maxloop need to be BaseTime objects. So do:

            
            
            var mintime = new(BaseTime);  
            mintime->SetFrame(mintime+start, doc->GetFps());  
            ...
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post