Scripting help - Uber Iray copy and layer texture.
So I'm trying to write a script for Daz3d which will
1) copy a surface (all materials/properties/maps etc) from one figure to another (the selected figure to a defined geograft which will be a child of the selected figure with a known name)
2) Convert the following textures to a layered texture and import a second transparent texture on top of all the textures already copied from the above step. (It's important the second texture be on top of the existing texture, so I may need to save the original textures with a Get...() command then add the transparent first and then the stored Get()?
Base Color
Translucency Color
Dual Lobe Specularity Reflectivity
Base Bump
Normal Map
Top Coat Color
Top Coat Roughness
Top Coat Bump
I've been looking at the API but I can't find any of these specific properties available in the dzMaterial - does anybody have any updated API including the UberIray object and properties?
even a source of examples of scripts which work with the shaders.
The only example is the deep copy script and it doesn't really go into individual properties within the material/texture/shader.
Thanks in advance.
Comments
This sample script may help https://www.daz3d.com/forums/discussion/503461/scripting-help-uber-iray-copy-and-layer-texture
There is a dedicated scripting forum, here https://www.daz3d.com/forums/categories/daz-script-developer-discussion - you might want to edit your opening post to move this thread there
This may be a good starting point for step 1
As always Richard is the MVP - set me up with the tutorials I needed to be able to complete the script I needed.
Thanks!