Also, is there a reason why you are using the dictionary steps for all your 
values?  It's hardcoded so you can't change any of the values, so if you 
wanted a variation you would have to rewrite the code.

You could try using keyword arguments in your function makeSpiralStairs(), 
for example makeSpiralStairs(name = 'Step', slide = 5, rotations = 10, 
spacing = 1, stepDepth = 2, stepHeight = 0.75 ), delete the line with the 
dictionary steps and just replace steps.get() with the relevant keyword, 
e.g steps.get('name') change to name.

It won't affect your code as you can still run makeSpiralStairs() on line 
74 as it will take your keyword argument default values.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ddea3a27-8888-4330-ad99-89d09f51898f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to