Does DAZ Studio support macros?
Slosh
Posts: 2,391
I am trying to automate something in DAZ Studio and wonder how to go about it. From what I understand, scripts can be written for this purpose, but I can't find any documentation on how to write them. I would like a script or macro that would allow me to change the UV set on Genesis when applying a Generation 4 texture without having to go into the Surfaces Tab and change it manually. I would then like to assign that script or macro to a hotkey, or at least list it as a Preset in my Smart Content Tab.
Does something like this already exist, or can someone direct me how to go about writing my own?
Comments
The simplest way to do this would be to save a materials preset, expanding each entry in the options dialogue so that only the UV set is selected. Otherwise, a script could do it - save a Materials preset from the File>Save as>Deprecated sub-menu in .dsa format and opening that in the Script IDE (Window>Panes(Tabs)>Script IDE) should give you an idea of how to do it - indeed you could just edit the script created.
That was brilliant, Richard! I went with the first idea... I haven't done any scripting in Daz Studio before, and although it reminds me of Visual Basic, I am very rusty (10 years) on writing that, too. The material preset works like a charm. Thank you so much! Now, I just have to figure out a way to assign a hotkey or something to it. Is there no way to put an icon on the interface for it? Doesn't matter, this will work great. Thanks again.
Once you have your preset saved, locate it in your Content library inside DS, then right click on it and select "Create Custom Action". That will create a Scripts entry on the menu bar. You should then be able to assign a shortcut key to it by going to Window->Workspace->Customize: on the left pane, named "Actions", at the top it should have an entry named "Custom" where you will find your preset which can be assigned a shortcut to now. Be aware that reinstalling DS will remove the Scripts menu but not the Customize entry.