scripting question

Is there any reason that getObject().getCurrentShape().findMaterial("Torso"); would return null on GF8.1? It works on GF8
You currently have no notifications.
Is there any reason that getObject().getCurrentShape().findMaterial("Torso"); would return null on GF8.1? It works on GF8
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
Because G8.1 doesn't have a Torso. They have a Body.
In general it isn't a good idea to feed the output of one fubnction into the input of another like that - it makes error trapping and debugging much harder.
There is a dedicated scripting forum here https://www.daz3d.com/forums/categories/daz-script-developer-discussion
Thanks for the link.
Personally, I prefer to use variables, but I am trying to fix someone else's code to work with 8.1.
thanks that fixed it.