I need to retrieve the obj.attr *string* of a connection into my plugin node as a usable string inside my compute function.
For example, if I have pCube1.tx connected into myNode.in[0], I want to be able to access the string "pCube1.tx". I can get at the *data* from that connection no problem, but for my particular uses, what I am after is that string "pCube1.tx". I've poked around most of today, but am not really coming up with anything that works. Ideas? Is there someway to get at that? My first thought was there was a way to do it directly, but can't seem to find a way, so now my fallback seems to be to find a way to get the current instance of myNode as a scene object (which I'm not sure how to do) and do a listConnections from myNode.in[0] to figure it out from there. Either way, haven't been able to make this work just yet. I know this sounds like I am probably going about something the wrong way, but it is in fact quite critical to my goal to get the string, and not just the attr data. Thank you in advance! You guys here always sort me out and I appreciate it! --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
