EditIfAny Data Member Function

Opens editing actions for all matching <Node> objects in the <NodeBuffer> that qualify to be edited. Once editing actions are opened, Simdify Scripting Language can change the <Node> and the change is entered into the undo history. Note that you cannot edit <Node> objects that have not been added to a document, and that includes <Node> objects added to the document in the current action. <Node> objects must have been added to the document by a previous action such as a macro to qualify for editing. Finally, the <NodeBuffer> cannot have ownership over any <Node> you wish to edit.

Prototype

int32 EditIfAny( NodeBuffer p_oBuffer, EditModel3D p_poModel, TypeInfoArray p_aoTypes )

Parameters

Parameter Type Parameter Name Documentation
<NodeBuffer>p_oBufferA pointer to the <NodeBuffer> containing the set of <Node> objects you wish to edit.
<EditModel3D>p_poModelA pointer to an <EditModel3D> object such as Model to associate the editing action.
<TypeInfoArray>p_aoTypesA pointer to a <TypeInfoArray> that specifies which types of <Node> you wish to edit. The <Node> object's type must be an exact match to at least one type in the <TypeInfoArray>. Subclasses will fail this test. Finally, the <NodeBuffer> cannot have ownership over any <Node> you wish to edit.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Simdify Scripting Language code base.