Set Min and MaxLoopTime



  • 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); 
    


  • 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());  
        ...
    

Log in to reply