Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1067

Identifying nodes by type and assets

$
0
0

I'm trying to identify the nodes in a scene belonging to specific types, e.g. clothing.

The first thing I'm trying is getting the presentation for a DzNode. The DzPresentation::type has values like Follower/Wardrobe/Dress, which is useful. However, not all clothing items seem to have this set correctly. Some I encountered just have Follower, for example, which isn't specific enough.

My next idea is to get the metadata for the node's underlying asset. Each node has an assetID, but I can't figure out how to convert it to a DzAsset, from which I can get the relevant categories. The DzAssetMgr class doesn't seem to provide anything useful in that regard. How can I go from DzNode to DzAsset?

More generally, is this the right approach to classifying nodes? Or is there a better way?


Viewing all articles
Browse latest Browse all 1067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>