I managed to get the value like this:

node = self.thisMObject()
fnThisNode = OpenMaya.MFnDependencyNode(node)
attr = fnThisNode.attribute("testAttr")
plug = OpenMaya.MPlug(node, transp)
value = plug.asFloat()
print value

But I really want to know why the other method I know works in C++
doesn't work for me here. And am I doing it right when I'm using the
name of the attribute (as string) to get it's value ?
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to