Referencing an attribute in a node [HELP!]

   720   2   1
User Avatar
Member
7 posts
Joined: Jan. 2022
Offline
I made an attribute that calculates the width of each side of my cylinder.
its stored as an attribute called "globalWidth"
I want to make a chf that is connected to this globalWidth so I can reference it.
chf("globalWidth",0) does not work and I dont know how to make a chf that updates.

Attachments:
width attribute.png (43.3 KB)

User Avatar
Member
57 posts
Joined: May 2013
Offline
You can't reference that using chf because it's not a channel. Here's a file with a couple of ways you can reference it, using expressions or VEX

Attachments:
reference_attrib.hiplc (136.1 KB)

User Avatar
Member
57 posts
Joined: May 2013
Offline
I should add by the way that once you've referenced the attribute with a point expression, you CAN reference that using ch. So in that scene you can use ch("../box1/sizex") to get the channel value.

Attachments:
channel.jpg (60.3 KB)

  • Quick Links