Thanks again Remi, unfortunately yeah I went with API 2.0 to see the state
of things... so far I have no complaints except that it makes implementing
other people's code harder. Things are finally working after more fiddling
and some pretty disgusting hacks which I'll eventually have to fix.
I gave you an example in API 1.0. There are differences between the two
APIs. I have never worked with API 2.0.
Your attributeAffects is not valid. The first argument must be an
inputAttribute ans second must be outputAttribute.
cls.attributeAffects( cls.attrIn_blendWeight,
Thanks for the help Remi!
Your method didn't work for me right away but was a big help. Knowing that
I can get any attribute I want inside the compute() without relying on the
datablock being passed in was pivotal along with some of your other
examples, like getting the children of the
Thanks for the help Remi!
Your method didn't work for me right away but was a big help. Knowing that
I can get any attribute I want inside the plug without relying on the
datablock being passed into compute was pivotal along with some of your
other examples, like getting the children of the
Hi Michael,
You can get compound attribute like this.
def compute(self, plug, dataBlock):
# Compute only on input compound attribute
a_valid_attr = [self.attrIn_tensionColor_01,
self.attrIn_tensionIndex_01, self.attrIn_blendWeight]
if plug not in a_valid_attr:
return
#