ourouk
Hello,

I have an issue with a scene (with soup nodes) referenced with namespaces.
In the referenced scene, the expressions in point nodes are note re-evaluated ( which is a normal behaviour in maya ).

Something like :
float $value = `getAttr node.attr`;
Inside a referenced scene, this expression don't work no more ( "node" has a namespace REF:node )

I have a few questions about that :
- Why do I need to use getAttr instead of juste $value = node.attr in point node ?
- Is there a way to update "procedurally" this expression
- If it's not the case, would it be possible to add some "opinput" attribute in thoses nodes (like opinput in Houdini) do to something like $value = opinput1.attr or $value = `getAttr opinput1.attr` ?

with "opinput" the name of "node" connected to it...
I don't know if it's clear, let me know :)

Thanks a lot
pshipkov
There is a local variable called $NODE it will return the name of the node.
So when the node is referenced you do this in its startup expression.

string $tokens[];
tokenize $NAME ":" $tokens;
string $namespace = $tokens[0];

I don't have the "result = node.attr" syntax sugar because i wanted to avoid parsing the code for this kind of stuff.
Reply 1 0
ourouk
$NODE ! jeezzz !

It's perfect !
Thanks a lot :)

I should have looked more deeply into the forum...sorry for the "duplication"
http://soup-dev.websitetoolbox.com/post/point-nodes-getattr-and-namespaces-5621055
Reply 0 0
Reply