So this may be a simple thing but I'm been butting my head against it a 
while and was trying to figure out how to do this. So what I have is this:

   1. Character class instance with pertinent data stored
   2. Gui class instance that instances that character class on load

Up till now, i've just been instancing within the instance so 
guiInstance.CharacterInstance but I seemed silly to reinstance the 
character every time the guiInstance is loaded. So what I wanted was to 
instance the characterInstances to the 'root' of maya to a holder. 
Something like 'CharacterHolderClass.character' and then when the gui 
initializes, it'll look to see if the character has already been instanced 
and if not, will instance it to the root holder then link it within itself.

I can make the instance and some of the functionality via something like 
this:
#mel.eval('python("cgmPuppet.__dict__[%s] = 
PuppetFactory(%s);")'%("'%s'"%name,"'%s'"%name)) 

However, that's pretty sloppy to me and I'd love to be able to see the base 
instance of cgmPuppet from within the gui instance but haven't been able to 
find a way to see it. I've tried global as well as some other things but 
I'm hitting my head in the wall.

Any help would be appreciated:)
-j

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to