Re: [Maya-Python] Re: How to set/ highlight QTreeView selection based on a given string

2018-09-18 Thread Justin Israel
On Wed, Sep 19, 2018 at 12:25 PM kiteh wrote: > Hi Justin, > > Many thanks for getting back to me on this. > > I do have some questions (kindly pardon my questions). > > 1. Why is there a need to use `enumerate`? It seems that the variable - > `i` is not being used anywhere.. If so, wouldn't it

Re: [Maya-Python] Re: How to set/ highlight QTreeView selection based on a given string

2018-09-18 Thread kiteh
Hi Justin, Many thanks for getting back to me on this. I do have some questions (kindly pardon my questions). 1. Why is there a need to use `enumerate`? It seems that the variable - `i` is not being used anywhere.. If so, wouldn't it be better to use/ write it as for part in (parts): ...

[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] My node compute function Does not work properly!!

2018-09-18 Thread miarmy
hi! My node only works when it's attributes are displayed in attribute editor or channel Box window How to fix this problem?? For example: https://textuploader.com/dvpzd in this node, I want the compute def to run when my shape that is connected to my node, is moved but this example