Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only.
These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use.
Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability.
Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing.
The software is provided as is with no guarantees or support.
NodeIDs are generated during runtime. There is no guarantee, that the nodeIDs of a loaded model
are the same, if the 3D Space was reloaded in the browser.
The NodePathAPI allows the user to handle nodes with static identifiers, which are not
changed during runtime. This holds, if the model resource is not changed.
Example
// Get an instance of the ContextAPIconstmyContext = webvis.getContext( "example" )// add some modelmyContext.add(someModelURI);// the model is currently loading in the browser and we know, that the parts which are of interest have the nodeIDds 170 and 171// we execute the following code in the console to get a string that can be used to refer to the part everytimeconsthandles = awaitmyContext.createNodePathHandles([170, 171]);constnodePathStrings = awaitmyContext.requestNodePathStrings(handles);// Afterwards the nodePathStrings can be used to retrieve the runtime nodeIDs by scriptconstnodePathHandleMap = awaitmyContext.requestNodePathHandleMap(nodePathStrings);for (constnodePathStringofnodePathStrings) {console.log(nodePathString + " has the nodeID " + nodePathHandleMap[nodePathString].nodeID);}
NodeIDs are generated during runtime. There is no guarantee, that the nodeIDs of a loaded model are the same, if the 3D Space was reloaded in the browser.
The NodePathAPI allows the user to handle nodes with static identifiers, which are not changed during runtime. This holds, if the model resource is not changed.
Example