Lesson6 question

   1982   2   0
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
Hi,

I'm going through Sidefx tutorial Lesson6: Attributes and Variables. Link below.

https://archive.sidefx.com/index.php?option=com_content&task=view&id=2186&Itemid=361 [archive.sidefx.com]

In this tutorial, he created an attribute “ari” from the color value, delete color attributes by adding point op with none color, and add color again by adding point op and calling $ARI values. file attached.

When I call the “ari” values if I use “@ari.x, @ari.y, @ari.z” it works fine. But when I use “$ARI1, $ARI2, $ARI3” which was how he did in the tutorial, it fails. Why calling through “$” fails?

Thanks,

hb

Attachments:
attributeTest.hiplc (199.2 KB)

User Avatar
Member
184 posts
Joined: Dec. 2008
Offline
i can not look at your file right now, but when you want to use variables down the chain you have to map an attribute to the variable. you can do so using the addvariablename VEX function in an attributewrangle or using a create attributeSOP that has a field for naming a variable, you have to set the value to the wanted attribute there.

using variables gets replaced by an @attribute workflow, so as far is i know most people avoid using the old $VAR system.

hope that helps.

another thread about that topic
http://www.sidefx.com/forum/topic/42207/ [sidefx.com]
Edited by Fest - June 5, 2016 08:07:06
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
thanks for your answer.

i guess i'll focus on getting to use @attribute workflow.

hb
  • Quick Links