Access tag and object from python node

On 24/03/2014 at 11:03, xxxxxxxx wrote:

I don't work with the python node much but I assume theres a way to access the object the xpresso tag is on from the python node within it?


On 24/03/2014 at 12:18, xxxxxxxx wrote:

You can just add an object node and link that to the python tag. If you want it to be dynamic as in you will be moving the tag from object to object node it should pick up the object it is added to.

On 24/03/2014 at 14:03, xxxxxxxx wrote:

Thanks that does work. Was hoping to do it by python though:/ Thanks

On 24/03/2014 at 14:47, xxxxxxxx wrote:

Inside a python node 'op' stands for the python node itself.

So you can use...


... to get the object the expresso tag is on.


On 24/03/2014 at 20:06, xxxxxxxx wrote:

Ah that's what I was looking for. I didn't know about the GetOwner command on python nodes.
Thanks Peter!