This is probably a good idea, I am still learning Python, (baby steps for
now)
On Thursday, September 14, 2017 at 6:13:06 AM UTC-7, Neil Roche wrote:
>
> 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/c4bfd56a-9908-4fe9-b7b6-b5ba433b455a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.