Cinema 4D Cinema 4D Prime XPresso XPresso Nodes Script (Group)
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

C.O.F.F.E.E. Operator

Basic Node Parameter

C.O.F.F.E.E. Operator

This node enables you to integrate C.O.F.F.E.E. code with your XPresso Expression. You can add any number of input ports to the node and rename them via the node’s context menu. However, you cannot change the type of a port. If you add a port of the wrong type, you must delete it (double-click it) and add a new port of the correct type.

The input ports are declared automatically as variables — there is no need to declare them in the node. For example, the default C.O.F.F.E.E. node has two input ports (Input 1 and Input 2) that are used in the code without first being declared. As with the input ports, you can add output ports of varying type and you can rename them freely.

Keep in mind that some restrictions apply when using C.O.F.F.E.E. programs in C.O.F.F.E.E. nodes. In particular, neither the project nor the objects in the scene can be accessed directly by the C.O.F.F.E.E. code. Instead, pass the desired information — such as an object’s position — to the C.O.F.F.E.E. node via another node.

The C.O.F.F.E.E. node is designed primarily for evaluating math expressions and for adding simple programming structures to the XPresso Expression, such as the if/then/else statement. Complex expressions should be written as standard C.O.F.F.E.E. expressions instead.

For more information on C.O.F.F.E.E., visit http://developers.maxon.net.