First of all, this seems to be a great place to learn more about programming. I\'ve written a maya python script, where both functions work, I\'m having trouble getting the
cmds.button(label="Apply", command=superExtrude(extrScaleVal, extrDistVal))
This line calls superExtrude
and assigns its return value to command
. Since superExtrude
doesn't return anything, the button effectively has a commnand of None
.
Perhaps you meant to have superExtrude
get called when the button is clicked, in which case you ought to wrap it in a lambda to prevent it from being called immediately:
cmds.button(label="Apply", command=lambda *args: superExtrude(extrScaleVal, extrDistVal))