Map Transfer called from Script
DraagonStorm
Posts: 748
Title kinda says my question :)
It there a way to call the Map Transfer interface from within DAZ Script?
And maybe even pass parameters to it?
Post edited by DraagonStorm on
Comments
Launching the "Map Transfer" dialog is fairly simple... provided you know the name of the action that causes said dialog to be displayed.
Note: Originally the tool was named "Texture Convertor" [and still is in the API]; marketing types at the time decided that they didn't like the name that the developers gave it, and requested a change - this only occurred in labels, as we did not want to break source/binary compatibility.
This tool was previously provided only as part of a "paid" product; it shipped with the application and was unlocked with a serial number. Its API was specifically not exposed to script; you can get to it if you know how [its undocumented/unsupported], but there is nothing of real use. A number of things have changed since that time. If you are interested in accessing the Texture Convertor via script, I would suggest submitting a feature request for specifically exposing it to script.
-Rob
There is always that provision isn't there :)... Thank you Rob
Refer to the Find Action Classname sample, when you want to discover the classname of an action... using the label displayed within the UI.
-Rob
Rob, I have a question about the Map Transfer Save and Load.. Not sure if you can help or if I need to open a ticket.
When I save a setup, it doesn't save the Hardware Cut Off and Downsize to Cut Off values to the .dsx files. Are these unavailable? If they are available what are the values for the .dsx (xml)
Oh, and the class action stuff worked like a charm! Thank you.
Apologies for the slow response... I've been "a little busy". ;)
Those values do not appear to save/load.
However, in the spirit of “discovery”...
No documentation or source code was used to create the script above - I approached it as if I were in your shoes. Debugging code is left in place and the comments simply capture my thoughts as I coaxed the interpreter into telling me what I wanted to know.
The non-debug laden version...
But again, without more of the API exposed to script... success is questionable; there is a function to perform the conversion that does the heavy lifting, but isn't accessible to script.
-Rob
Thank you Rob, I'll see what I can do with this :)