hi Justin,

sorry let me explain more clearly. I have a package which contains 3 modules 
(seperate python files) and a subpackage which contains all the utility modules 
(6 other python files, like 'subdivide_curves' and 'fire_circles' etc).

in the main package the 3 modules 'createGui' which loads my GUI, one 
'configure' which sets up all the required variables for my program and another 
'run' which actually gets called when the user runs the program through the GUI.

Inside 'run' it basically has all of my modules loaded in (that are being used 
directly in 'run' like this:

-------------------------------------------

import samDev.rigging.TOPOCOAT.configure as configure
reload(configure)
import samDev.rigging.TOPOCOAT.utility_functions.subdivide_curves as 
subdivide_curves
reload(subdivide_curves)
import samDev.rigging.TOPOCOAT.utility_functions.general as general
reload(general)
import samDev.rigging.TOPOCOAT.utility_functions.webbing as webbing
reload(webbing)
import samDev.rigging.TOPOCOAT.utility_functions.circle_configure as 
circle_config
reload(circle_config)

---------------------------------------

and then there is a main function which just calls the required modules one 
after the other using the variables returned from the 'configure' module.

eg. 'subdivide_curves.execute(configured_curves)'

The problem i think when a module is called which then itself creates new 
variables (specific to that module) and calls another module and i have to 
track the current variables' state at that point and feed those modified 
variables into the module call.

Like inside the module 'circle_configure' the script calls the module 'general' 
which has a function that fires rays and return collision points. but before it 
calls it i have to figure out all the variables it requires from the 
'subdivide_curves' module and feed them into the module call:
                                
fire_circles.execute(circle_counter,limb_counter,curr_circ_center,limb_vec,crv_pnt1,crv_pnt2)

when this was all one script everything linked up obviously. But as im 
splitting things up im finding it tedious to feed information from one module 
into the next one. And im not sure if im setting this up sensibly.

I hope this is clearer? sorry am a bit lost here

thanks alot Justin, 
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/193f7cdf-2348-4071-b934-8dcb826a9685%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to