Hey all, 

i have finished a large script which effectively builds a new mesh topology 
from an underlying sculpt mesh. My script is currently approaching the 3000 
line mark. Its is hard to navigate and i wanted to break into modules which i 
can trigger off from a main script.

i want to have one script organised like this:

1) do hands (call hands creation modules)
2) do arms (call arms module)
3) do legs (call legs module)
4) do feet (call feet module)
5) do torso (call torso module)
6) do head (call head module)

7) combine surfaces and merge verts

i understand the principle of modules but i just wanted to make sure if this is 
a smart way to organise it. And if someone could just give me a basic set of 
steps i could take to achieve it. Im not clear whether everything needs to be a 
class for example.

And there are common functions which each module in turn needs to call in order 
to build their meshes, and i don't know if the modules will be able to see the 
functions they require. I assume if i want to keep the main script minimal i 
will need all those smaller functions i created (that each module would need to 
access) in their own module.

then there are also 'packages' and whether this is a better solution?

sorry a bit long, but thought it best i really understand this before i spend 
days sifting through this script and creating more problems for myself in the 
end.

thanks alot guys, 
Sam

-- 
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/605c97e4-0835-4054-a9a2-0aaa53036828%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to