Search - User list
Full Version: How to map local variable in Attribwrangle
Root » Technical Discussion » How to map local variable in Attribwrangle
blove
If I make a new Attr in attribwrangle,
i@myAttr = 1;

How to map it to a local variable($MYATTR)?
blove
graham
http://www.sidefx.com/docs/houdini14.0/vex/functions/addvariablename [sidefx.com]

Thanks! buddy!

And how to write it correctly?


void addvariablename(“myattr”,“myattr”);

It still tell me:Wrong!!!

`addvariablename(myattr,myattr)`;
`addvariablename(“myattr”,“myattr”)`;
No wrong ! But it wasn't mapped!No $MYATTR exist!

What Should I do?
If you could tell me the right way?
graham
The Attribute Wrangle is using the CVEX context, so you'll need to use the function signature that takes a geo handle.
f@foo = 1;
addvariablename(geoself(), “foo”, “BAR”);
blove
graham
The Attribute Wrangle is using the CVEX context, so you'll need to use the function signature that takes a geo handle.
f@foo = 1;
addvariablename(geoself(), “foo”, “BAR”);

It's very kind of you!

Got it!
It's Worked!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB