A Freeze expresso node in COFFEE ?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 05/12/2008 at 14:29, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R11 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

---------
Hello ,
I'm looking for an equivalent to the expresso freeze node in COFFEE . Can you help me with the function to use please ?
I was trying to store a matrix , only when a boolean checkbox is activated .
thx by advance
 
clement

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/12/2008 at 02:33, xxxxxxxx wrote:

I've thaught I could use a basecontainer , but it doesn't want to get me the matrix stored ( it gives me a 0 matrix ( the "preset" one I guess )
first I did  var bc = new(Basecontainer) ... then   bc->SetData(1,mat); ....  and then I call bc->GetMatrix(1) ;    .. but the result is matrix [ 0,0,0,0 ]
maybe there is a boolean storage function like the freeze node ?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/12/2008 at 09:03, xxxxxxxx wrote:

Howdy,

Well, I'm not sure how you do it in coffee, but normally you would store values in an object's or tag's BaseContainer, instead of a "new" BaseContainer, and it's recommended to only use object or tag BaseContainer ID's from 1000 and up, because there can be internal data stored in ID's below 1000 that you would overwrite.

Adios,
Cactus Dan

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 08/12/2008 at 05:37, xxxxxxxx wrote:

With the COFFEE node you have to use a global variable, not very elegant but it works.

Copy this into the COFFEE node, Switch is the boolean input, Value the value (or your matrix) and Output the output.

> \> var temp; \> \> main() \> { \>      if(!Switch) \>      { \>           temp = Value; \>           Output = Value; \>      } \>      else Output = temp; \> } \>

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 08/12/2008 at 06:35, xxxxxxxx wrote:

ok thank you guys 🙂 !
cheers                                                                                                                                               clement