changing the UVs
nicstt
Posts: 11,715
I can get mat for say the ears, then select the UVset.
var oMat = main_charShape.findMaterial("Ears");
print("oMat: ", oMat.name );
var mats = oMat.findPropertyByLabel("UV Set");
print("mats: ", mats.name );
If it was a material that held a texture, I'd just set the path and image name
mats.setMap(path + diffuse);
... but I can't find how to set a particular UV set, say changing Base 8.1 Female to Base Female - or any of those available in the dropdown.
Post edited by nicstt on
Comments
I think it will be a DzEnumProperty (you can use className() on it to check), http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/enumproperty_dz . If so you could use findItemString( string ) to get the index you wanted, then set it as the current value http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/enumproperty_dz#a_1abbacc2c8052d8a40b62da4f61ebc0ca5
thanks Richard, I'll have a look