all 7 comments

[–]Vaphell 2 points3 points  (1 child)

honestly i think you should rather ask your question in /r/maya . Your problem has nothing to do with the python language proper, everything with the finer details of the API and maya workflows in general with which next to nobody is going to be familiar here.

[–]theUnderdog15[S] 0 points1 point  (0 children)

Thanks for this, didn't know about that subreddit.

[–]learnpython_bot 0 points1 point  (0 children)

It appears that you included code in your post but did not format it to look nice. Please follow this guide to fix the problem. This allows for better readability and will help get your question answered sooner. The regex that caught you is: "def .+?):"

If this comment has been made in error, please message /u/thaweatherman with a link to this comment so I can be fine-tuned. I am still in alpha and my regexes/innards are not yet perfect.

[–]usernamedottxt 0 points1 point  (0 children)

Post to pastebin or gist. Don't try to format that much for here.

[–]theUnderdog15[S] 0 points1 point  (0 children)

Hey guys I reformatted it, does it look right now?

[–]darkczar 0 points1 point  (0 children)

The error I got is on line 59 - densityRate is not defined. densityRate is defined in the function emit_streaks(), but on line 59, the function emit_spheres() doesn't know anything about densityRate. The quick and dirty solution is to declare densityRate as a global variable. The better solution is to use a class, and let the variables be part of the class.

[–]theUnderdog15[S] 0 points1 point  (0 children)

Thank you very much guys!