Main Index : Reference :
Notifies C4D of changes in the document.
[bool] EventAdd([[int] flags]);
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 |
|---|---|
|
|
Force a complete redraw. |
|
|
Animate document. |
|
|
Don't execute expressions. |
|
|
If this is set (and not |
See also SpecialEventAdd().
// 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();