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

How to findRegion("Head") from property/element/object/node/skeleton?

$
0
0

Hi Richard (you'll probably be the first and only to see/answer this as usual)

I have a list of properties (DzProperty) for the selected node and from there I can see the region of each property using property.getRegion() which returns a geometryregion_dz (not documented in the API). If I want to set the property's region I need to provide a geometryregion_dz. If it already has a region I can use property.getRegion().findRegion("Head") but if it has no region I can't find a way to get a valid region from DzProperty, DzElement, DzNode, DzObject or DzSkeleton.

I'd like to do something like this:

var oldRegion = property.getRegion(); // might be null
var newRegion = <<something>>.findRegion("Head");
property.setRegion(newRegion);

Any suggestions?

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles