Adding to Cart…
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2024 Daz Productions Inc. All Rights Reserved.You currently have no notifications.
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2024 Daz Productions Inc. All Rights Reserved.
Comments
Thank you!
oShape.clearMaterialSelection();
This did the trick, as I comes back to each material from the outside through the object -> shape tree, it kept the previously selected material even though I did call select(false) on the material before I exited that call.
/ Totte
Thanks once again, and here is a stripped down version of my code where it does not work as expected as I apply a shader between select(true) and select(false)
Try it and you see, adding that magic oShape.clearMaterialSelection(); solved it!
/ Totte
And now it works when I figured out the underlaying issue (the DzMaterial object is replacd when the shader is uopdated, not updated.
Attached test-1.dsa now working doing shader apply, so you now the basic issue.
Yes, I thought I recalled that applying a new preset created a new DzMaterial-derived object and Rob confirms. In general the preset might completely change everything (from an MDL or RSL shader DzShaderMaterial to a Shade Mixer DzBrickMaterial, for example) so trying to safely maintain continuity would not be practical
Hi, I so love the searchsurfaces script (a real life saver) - but does anyone know a script to search and rename a lot! of surfaces of some selected objects?
For example, I name 50 surfaces "stone", but want to change them into "rock", or if I have a typo and do not want to go through aaaall these nodes one by one.
I know, it can be done through text editor, but that is so ... I never know, if it will save properly or corrupt the file.