I’m currently trying to print the value of an attribute during compute:
loc = dataBlock.inputValue(ADANode.location).asString() print loc
But I’m getting some weird hex stuff being printed to the console:
How do I get the value of the attribute in a form I can use? is there a way I can convert the output?
Furthermore, within the node class init I am simply declaring:
self.tloc = ""
But when I try to concatenate I get:
TypeError: print ( "Old location: " + self.tloc): cannot concatenate ‘str’ and ‘PySwigObject’ objects
This really confuses me. Is Maya doing something to my datatypes that I don’t want it to? How can I fix this?