So I'm working on a tool that requires me to do some divisions of variables. I ran a test version in the Python Shell window and it worked just as I expected but when I run it in my Python node I get an error when I apply it. Here is the code and error
Error: Python error: Traceback (most recent call last): File "<stdin>", line 11, in <module> TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
Justin Rhoades Does anyone have an idea why this would happen?
If the node with path /obj/geo1/Percentdoesn't have a parameter whose token is Percent, node_percent.parm("Percent")would probably return NoneType. Make sure you're not mixing up the parameter's token and label. You can hover over a parameter's label to see it's token in the help tooltip. Hopefully that's what you're looking for.