Public Member Functions | |
| HRESULT | Value ([in] BSTR bNodeName,[in] BSTR bConName,[out, retval] VARIANT *pVal) |
| HRESULT | Value ([in] BSTR bNodeName,[in] BSTR bConName,[in] VARIANT newVal) |
| HRESULT | Create ([in] BSTR idName,[in] VARIANT vOwner,[out, retval] VARIANT *pVal) |
| HRESULT | Delete ([in] BSTR nodeName) |
| HRESULT | ConnectTo ([in] BSTR bSourceNodeName,[in] BSTR bSourceConName,[in] BSTR bDestNodeName,[in] BSTR bDestConName) |
| HRESULT | Disconnect ([in] BSTR bSourceNodeName,[in] BSTR bSourceConName,[in] BSTR bDestNodeName,[in] BSTR bDestConName) |
| HRESULT | ExportConnector ([in] BSTR bSourceNodeName,[in] BSTR bSourceConName,[in] BSTR bDestNodeName,[in] VARIANT vConnect,[in] VARIANT vSetValue,[out, retval] VARIANT *pVal) |
| HRESULT | ConRemove ([in] BSTR szNodeName,[in] BSTR szConName) |
| HRESULT | ConReset ([in] BSTR szNodeName,[in] BSTR szConName) |
| HRESULT | Rename ([in] BSTR bsFullNodeName,[in] BSTR bsNewShortNodeName,[out, retval] VARIANT *pVal) |
| HRESULT | ConCreate ([in] BSTR szNodeName,[in] BSTR szNewConName,[in] BSTR szNewType,[in] VARIANT vNewflags) |
| HRESULT | Copy ([in] VARIANT idName,[in] VARIANT vOwner,[out, retval] VARIANT *pVal) |
| HRESULT | SafeRename ([in] BSTR bsFullNodeName,[in] BSTR bsNewShortNodeName,[out, retval] VARIANT *pVal) |
| HRESULT | DisconnectAll ([in] BSTR bNodeName,[in] BSTR bConName) |
| HRESULT | ConRename ([in] BSTR bsFullNodeName,[in] BSTR bsConName,[in] BSTR bsNewConName,[out, retval] VARIANT *pVal) |
| HRESULT | SetFrame ([in] BSTR szRootName,[in] RtFloat frame) |
| HRESULT | ConExists ([in] BSTR szNodeName,[in] BSTR szConName,[out, retval] RtBOOL *pVal) |
| HRESULT | ConDataTypeExists ([in] BSTR szNodeName,[in] BSTR szDataType,[out, retval] RtBOOL *pVal) |
| HRESULT | SubObjectCount ([in] BSTR szNodeName,[out, retval] RtUlong *pNumSubObjs) |
| HRESULT | SubObject ([in] BSTR szNodeName,[in] RtUlong index,[out, retval] VARIANT *pVal) |
| HRESULT | Owner ([in] BSTR szNodeName,[out, retval] VARIANT *pVal) |
| HRESULT | FirstSelected ([out, retval] VARIANT *pVal) |
| HRESULT | Move ([in] VARIANT idName,[in] VARIANT vOwner,[out, retval] VARIANT *pVal) |
| HRESULT | DisconnectAllInputs ([in] BSTR bNodeName,[in] BSTR bConName) |
| HRESULT | DisconnectAllOutputs ([in] BSTR bNodeName,[in] BSTR bConName) |
| HRESULT | Exists ([in] BSTR szNodeName,[out, retval] RtBOOL *pVal) |
| HRESULT | IsRenderable ([in] BSTR szNodeName,[out, retval] RtBOOL *pVal) |
| HRESULT | IsLight ([in] BSTR szNodeName,[out, retval] RtBOOL *pVal) |
| HRESULT | IsCamera ([in] BSTR szNodeName,[out, retval] RtBOOL *pVal) |
| HRESULT | ConDataType ([in] BSTR szNodeName,[in] BSTR szConName,[out, retval] VARIANT *pVal) |
| HRESULT | SelectedCount ([out, retval] RtUlong *pNumSelected) |
| HRESULT | Selected ([in] RtUlong index,[out, retval] VARIANT *pVal) |
| HRESULT | Select ([in] BSTR szNodeName) |
| HRESULT | Selection ([out, retval] VARIANT *pVal) |
| HRESULT | SelectionLength ([in] BSTR bsNodeSelection,[out, retval] RtUlong *pSelectionLength) |
| HRESULT | SelectionGetAt ([in] BSTR bsNodeSelection,[in] RtUlong index,[out, retval] VARIANT *pVal) |
| HRESULT | ShortName ([in] BSTR bsFullNodeName,[out, retval] VARIANT *pVal) |
|
||||||||||||||||
|
Gets value of given connector of given object
val = Node.Value('/Project/Space 3D/Cube', 'ObjMatrix')
|
|
||||||||||||||||
|
Sets value of given connector for given object
Node.Value('/Project/Space 3D/Cube', 'Matrix') = val
|
|
||||||||||||||||
|
Creates object instance of given type in particular encapsulator
Encaps = Node.Create('Kernel Package/Object', '/Project/Space 3D')
|
|
|
Deletes given object (and all its connections if any)
Node.Delete( '/Project/Space 3D/Cube') |
|
||||||||||||||||||||
|
Creates new link between 2 objects
Node.ConnectTo(Gear, 'outMesh', Shape,'Input Mesh') |
|
||||||||||||||||||||
|
Erases existing link between 2 objects
Node.Disconnect(Gear, 'outMesh', Shape,'Input Mesh' |
|
||||||||||||||||||||||||||||
|
Exports given input or output connector
Node.ExportConnector(Shape, 'Mesh', '', 1, 1); |
|
||||||||||||
|
Removes given connector
Node.ConRemove('/Project/Space 3D/Cube', 'Mesh')
|
|
||||||||||||
|
Resets given connector (i.e. sets default value for it)
Node.ConReset('/Project/Space 3D/Cube', 'Mesh')
|
|
||||||||||||||||
|
Renames given object. Note: use SafeRename variant if you cannot ensure new name not exists already in the scene
Node.Rename('/Project/Space 3D/Cube', 'MyNiceCube')
|
|
||||||||||||||||||||
|
Creates new connector
Node.ConRemove('/Project/Space 3D/Cube', 'Note', 'string',2)
|
|
||||||||||||||||
|
Makes copy of the given object
Node.Copy('/Project/Space 3D/Cube', '/Project/Space 3D/MyGroup')
|
|
||||||||||||||||
|
Safely renames given object. If object with desired name already exists, similar name will be generated instead (e.g. 'Cube, 1' instead of 'Cube')
Node.SafeRename('/Project/Space 3D/Cube', 'MyNiceCube')
|
|
||||||||||||
|
Disconnects all links from given connector of given node
Node.DisconnectAll('/Project/Space 3D/Cube', 'Matrix'))
|
|
||||||||||||||||||||
|
Renames existing connector
Node.ConRename('/Project/Space 3D/Cube', 'Mesh', 'MyMesh')
|
|
||||||||||||
|
Set animation frame for given object / scene
|
|
||||||||||||||||
|
Tests for given connector existence (by connector name)
if (Node.ConExists('/Project/Space 3D/Cube', 'Matrix'))
System.Alert('Connector Matrix exists in the object');
|
|
||||||||||||||||
|
Tests for given connector existence. (by connector type)
if (Node.ConDataTypeExists('/Project/Space 3D/Cube', ' Space 3D Package/Mesh Data'))
System.Alert('mesh is present in the object');
|
|
||||||||||||
|
Gets number of subobjects of given object
nSubObj = Node.SubObjectCount('/Project/Space 3D/Cube');
for (i = 0; i < nSubObj; i++)
System.Trace(Node.SubObject('/Project/Space 3D/Cube', i));
|
|
||||||||||||||||
|
Gets subobject name for given object and index
nSubObj = Node.SubObjectCount('/Project/Space 3D/Cube');
for (i = 0; i < nSubObj; i++)
System.Trace(Node.SubObject('/Project/Space 3D/Cube', i));
|
|
||||||||||||
|
Gets owner (parent) of given object
owner = Node.Owner('/Project/Space 3D/Cube');
|
|
|
Gets the first object from the current selection
selName = Node.FirstSelected() |
|
||||||||||||||||
|
Moves the object
Node.Move('/Project/Space 3D/Cube', '/Project/Space 3D/MyGroup')
|
|
||||||||||||
|
Disconnects all input links from given connector of given node (usefull mainly for encapsulators where one connector can have input and output links as well – subobjects exports are also links)
Node.DisconnectAllInputs('/Project/Space 3D/Cube', 'Matrix'))
|
|
||||||||||||
|
Disconnects all output links from given connector of given node (usefull mainly for encapsulators where one connector can have input and output links as well)
Node.DisconnectAllOutputs('/Project/Space 3D/Cube', 'Mesh'))
|
|
||||||||||||
|
Tests existence of given object (by name)
if (Node.Exists('/Project/Space 3D/Cube'))
System.Alert('the object exists!');
|
|
||||||||||||
|
Tests if given object is renderable (i.e. it contains mesh, matrix, material so it is recognized by renderers )
if (Node.IsRenderable('/Project/Space 3D/Cube'))
System.Alert('the object is renderable!');
|
|
||||||||||||
|
Tests if given object is a light (i.e. it contains light-specific attributes(s))
if (Node.IsLight('/Project/Space 3D/SpotLight, 1'))
System.Alert('the object is a light!');
|
|
||||||||||||
|
Tests if given object is a camera (i.e. it contains camera-specific attributes(s))
if (Node.IsLight('/Project/Space 3D/Camera'))
System.Alert('the object is a camera!');
|
|
||||||||||||||||
|
Gets data type (in string form) of given connector in the given node
|
|
|
Gets number of currently selected objects
|
|
||||||||||||
|
Gets one objects from current selection
|
|
|
Selects given object (the object will be the only one selected after this operation)
|
|
|
Gets entire objects selection in one string (semicolon separated object names) Usefull whan you need to remember original selection
|
|
||||||||||||
|
Gets length (number of objects) in given selection string (obtained using the Selection method)
|
|
||||||||||||||||
|
Gets one object from selection string (obtained using the Selection method)
sel = Node.Selection(); for (i = 0; i < Node.SelectionLength(sel); i++) { Node.Select(Node.SelectionGetAt(sel, i)); // do some stuff here } |
|
||||||||||||
|
Gets object's short name (the name without full path, usefull e.g. when passed later into the Rename method)
|
1.3.2