Reverse source shape from target (Transfer Utility) with script?
andreash89
Posts: 1
I'm currently learning simple scripting and working with the Transfer Utility: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/transferutility_dz
I wrote a script that works almost as intended, but I want to transfer morphs from the Genesis 2 Female in a non-default pose. I could use the "Reverse source shape from target" option, however I just can't find the corresponding setter method in the API documentation. There are setter methods for almost everything else, so I found this a bit strange. Is it missing or am I just overlooking it? Maybe there is another way to achive the same effect?
Comments
The following methods provide access to the option labled "Reverse Source Shape From Target" in the Transfer Utility dialog:
-Rob
Thanks for the quick reply! It didn't quite work at first, but I finally got it working now, though I'm not sure how exactly. I'm curious to know if the code/API has been changed somehow? I used SourceMorphTransferType.Favorites for the enumeration at first, but suddenly got an error and had to change it to DzTransferUtility.Favorites
Values of enumerated data-types (i.e., an enum) are accessed like (static const) properties of the object (or an instance of the object), using either dot (e.g., DzTransferUtility.NameList, DzTransferUtility.Favorites, etc.) or bracket (e.g., DzTransferUtility[ "NameList" ], DzTransferUtility[ "Favorites" ], etc.) notation. Values of enumerated data-types are not accessed like properties on an object named after the data-type (e.g. SourceMorphTransferType.NameList, SourceMorphTransferType[ "Favorites" ], etc.), unless you have created an instance of the object named after the data-type (not recommended).
-Rob