Find figures?
Seven193
Posts: 1,080
How can loop through all nodes in a scene, and only find figures of type "Genesis8Female" ?
What function must I call that contains that particular substring?
What function must I call that contains that particular substring?
Post edited by Seven193 on
Comments
I am tol that it is
DzScene::getSkeletonList()
QObject::name
You could try node.assetID (a property, not a method, so it doesn't take parentheses) which returns a string. Note that the user-accessible string, in the Scene pane, is the label not the name.
Even though the imported file is a prop and not a figure, it's assetID is the same, so assetID by itself is still not reliable. Maybe node.assetUri is better than node.assetId or node.name for stricter identification.
#imported prop
assetID: Genesis8Female
assetUri: #Genesis8Female
numNodes: 0
#original figure
assetID: Genesis8Female
assetUri: /data/DAZ%203D/Genesis%208/Female/Genesis8Female.dsf#Genesis8Female
numNodes: 234
isFigure: 1