I need to extract the value of: "/ai[0]/models[0]/balistic[0]/name"
I try with this code:
- Code: Select all
var getModelAdded = props.globals.getNode("/ai/models/model-added",1).getValue();
var getModelAdded_Name = props.globals.getNode(getModelAdded ~ "/name",1).getValue();
Not work the system return this error:
- Code: Select all
Nasal runtime error: bad argument to setprop/getprop path: expected a string
Is there a way to avoid this error?