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

DzProperty returning empty/incorrect data compared to DSF file

$
0
0

I'm writing a script to retrieve property details from the selected node using DZProperty, see http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/property_dz.

Methods like property.getLabel() and getPath() are working as expected but some properties return empty/incorrect data e.g. property.name returns Value and property.assetAuthor returns ["","",""]. Looking at the DSF file below (masked with ***) this seems incorrect. As you can see author exists under asset_info and name exists under modifier_library.

Interestingly, when I open the Parameter Settings for this same property from the Parameters pane the info is correct, so it my conclusion is that DZProperty must be reading from the channel entry instead of the modifier_library entry hence returning empty/incorrect data.

Can anybody shed light on this ... is DzProperty working as expected? If so why do most of my 5000+ Genesis 8 Female properties have incorrect info which is clearly in the DSF file?

Thanks

	"asset_info" : {
		"id" : "/data/DAZ%203D/Genesis%208/Female/Morphs/***/***.dsf",
		"type" : "modifier",
		"contributor" : {
			"author" : "***",
			"email" : "",
			"website" : ""
		},
		"revision" : "1.0",
		"modified" : "2018-12-04T16:41:29Z"
	},
	"modifier_library" : [
		{
			"id" : "***",
			"name" : "***",
			"parent" : "/data/DAZ%203D/Genesis%208/Female/Genesis8Female.dsf#geometry",
			"presentation" : {
				"type" : "Modifier/Shape",
				"label" : "",
				"description" : "",
				"icon_large" : "/data/DAZ%203D/Genesis%208/Female/Morphs/***/***.png",
				"colors" : [ [ 0.1, 0.2, 0.3 ], [ 0.3, 0.2, 0.1 ] ]
			},
			"channel" : {
				"id" : "value",
				"type" : "float",
				"name" : "Value",
				"label" : "***",
				"auto_follow" : true,
				"value" : 0,
				"min" : 0,
				"max" : 1,
				"clamped" : true,
				"display_as_percent" : true,
				"step_size" : 0.01
			},
			"region" : "Actor",
			"group" : "/People/Real World",
			"formulas" : [
				{

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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