djx
I'm using a point node in a rig and I use a getAttr in the position block. It all works fine until I reference the rig into another scene. Now getAttr fails because the object name does not account for the nameSpace change.

How I can refer to objects and their attributes inside a point node so it still works under a different namespace?

thanks
David

pshipkov
I know what do you mean.
Maya automatically resolves names in expressions, but not in scripts. There is not much i can do about it really.
I can provide you a workaround but you have to do special coding in order to take advantage by it.
Basically i can provide you with point node local variable that holds the name of the point node.
So if you have namespace:point1 you can figure out the namespace from there. And then append it to the names of the nodes in your code. I use similar approach all the time. There is simple way to do it non-destructively to your code so if there is no namespace the code still works fine. etc.

Reply 0 0
djx
Thanks Peter. Your suggested workaround would certainly solve my problem. Do I need a special version of the plugin?


Reply 0 0
pshipkov
It is not in the current release.
I will add it in the upcoming version.

Reply 0 0
djx
nice! thanks
Reply 0 0
pshipkov
Ok, i spent few minutes to add what you asked in the point node.
There is a new local variable called $NODE that you can use to retrieve whatever the name of the node is.

Keep an eye for the next update. It will be there.

Reply 1 0
djx
Super! Exactly what I needed. Thanks again.
Reply 0 0
Reply