Defining Intervals

 
 
 
Posted by:MrSparkle
Data created:28 May 2010

Hi,

I've got another question. How can I write the following code snippet in Max.Net since there is no class like Interval and no constant like FOREVER:

Interval SelMod::LocalValidity(TimeValue t)

   Interval valid = FOREVER;

   if (tmControl) {

     Matrix3 tm(1);

     tmControl->GetValue(t,&tm,valid,CTRL_RELATIVE);

   }

   return valid;

}

Thank you again :)

Christian

IInterval interval = global.Interval.Create();
interval.SetInfinite();

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Wow, thank you for you quick reply!