[Maya-Python] Re: My node compute function Does not work properly!!

2018-09-18 Thread Michael Kato
This is probably not actually correct, but if you change self.attributeAffects(self.aaaAttr, self.inMeshAttr) self.attributeAffects(self.inMeshAttr, self.tttAttr) to just self.attributeAffects(self.aaaAttr, self.tttAttr) it does start triggering the compute for me. Doesn't make a lot of sense

[Maya-Python] Re: Check all node types from a given full path

2018-09-13 Thread Michael Kato
For this my preference would be using PyMel doing something like this import pymel.core as pm selections = pm.ls(sl=True) for node in set(selections): allParents = node.getAllParents() print allParents Hope that helps! On Thursday, September 13, 2018 at 1:21:24 PM UTC-7, yann19 wrote: >

[Maya-Python] Re: Get all child attributes of compound node when one sibling changes

2018-08-31 Thread Michael Kato
): ''' uninitialize the plugin''' mPlugin = om.MFnPlugin( mobject ) try: mPlugin.deregisterNode( TensionMapBlender.nodeId ) print "Unloaded plugin" except: sys.stderr.write( 'Failed to deregister node: ' + TensionMapBlender.nodeName ) raise On Wednesday, August 29, 2018 at 6:32:45 PM UTC-7, Mich

[Maya-Python] Re: Get all child attributes of compound node when one sibling changes

2018-08-30 Thread Michael Kato
( tensionIndex, tensionColor ) print "Done", rgbValues except: print "Bad stuff" # next! multiInputArrayHandle.next() On Wednesday, August 29, 2018 at 6:32:45 PM UTC-7, Michael Kato wrote: > > Hi all, > > I've having a load of trouble with this. I've managed to get some com

[Maya-Python] Re: Get all child attributes of compound node when one sibling changes

2018-08-30 Thread Michael Kato
( tensionIndex, tensionColor ) print "Done", rgbValues except: print "Bad stuff" # next! multiInputArrayHandle.next() On Wednesday, August 29, 2018 at 6:32:45 PM UTC-7, Michael Kato wrote: > > Hi all, > > I've having a load of trouble with this. I've managed to get some com

[Maya-Python] Get all child attributes of compound node when one sibling changes

2018-08-29 Thread Michael Kato
Hi all, I've having a load of trouble with this. I've managed to get some complex (for me anyway) compound attributes set up and connected to objects in my scene, but right now I'm unable to get the "Blend Shape Multi Input" attribute to arrive as a plug to the compute() method in my scripted