How to reference a custom attribute in a channel.

   2111   2   2
User Avatar
Member
5 posts
Joined: Aug. 2018
Offline
This questions might be basic. I'm trying to reference a custom attribute @speed inside a channel. But the value doesn't seems to be read, is in fact being interpreted as zero (which is not). If I reference it as f@speed, then I get an error. Is there a specific way to do this?





This is the way I'm referencing the attribute, but as I said it returns zero.

Attachments:
wrangle.png (11.8 KB)
attribute_returns_zero.png (48.2 KB)

User Avatar
Member
172 posts
Joined: Jan. 2014
Offline
Hi,
you might want to create a detail attribute and use it in parameter like this
@Time * `detail("/path/to/ref/node", "speed", 0)`
you can't use just an attribute, you have to specify the source of it (points, prims, detail, vertex)
Edited by Ivan L - Nov. 13, 2019 22:37:15
I contribute to the beauty of this world
User Avatar
Member
5 posts
Joined: Aug. 2018
Offline
IL
you can't use just an attribute, you have to specify the source of it (points, prims, detail, vertex)

Thanks, that is exactly what I needed. Thanks a lot.
  • Quick Links