I\'m trying to get the top node of a chain in getTopParent(). When I print out self.name, it indeed prints out the name of the parent instance; however
getTopParent()
self.name
You need to return self.owner.getTopParent()!
self.owner.getTopParent()
In Python, you must actually use the return statement to return something from a function, otherwise None is returned.
return
None