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

    Set Min and MaxLoopTime

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 183 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 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 Offline
        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