Main Index : Reference :

EventAdd()


Description

Notifies C4D of changes in the document.

Definition

[bool] EventAdd([[int] flags]);

Explanation

This command is used to notify C4D that something has changed somehow. It replaces the old GeEventAdd() function. You no longer have to specify exactly what happened. These are the optional flags:

Flag Description

EVENT_FORCEREDRAW

Force a complete redraw.

EVENT_ANIMATE

Animate document.

EVENT_NOEXPRESSION

Don't execute expressions.

EVENT_CAMERAEXPRESSION

If this is set (and not EVENT_NOEXPRESSION), the event will only update camera dependant expressions (for faster speed).

See also SpecialEventAdd().

Examples

// Change the position and then refresh
obj->SetPosition(vector(100.0, 0.0, 0.0));
EventAdd();

// Add a new object and refresh the OM
var newObj = new(NullObject);
doc->InserObject(newObj, NULL, NULL);
EventAdd();