scripting question
heinzerbrew_f94794efff
Posts: 235
Is there any reason that getObject().getCurrentShape().findMaterial("Torso"); would return null on GF8.1? It works on GF8
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.