Using an attribute to drive a color ramp color
1705 7 0- animationalex
- Member
- 53 posts
- Joined: March 2018
- Offline
- Enivob
- Member
- 2538 posts
- Joined: June 2008
- Offline
- animationalex
- Member
- 53 posts
- Joined: March 2018
- Offline
Enivob
Instead of a VOP, drop down a color node and choose Ramp from Attribute from the Color Type dropdown. Type your attribute name without the @ symbol into the Attribute field.
Thank you for your response. What I am trying to do is create a AI generated color ramp. I am using MLOPs to generate an image from user prompts, then randomly grabbing 5 points, storing their color in an attribute, then reference them to a ramp. I have everything working up to referencing to a ramp.
- Xue_Yue
- Member
- 56 posts
- Joined: June 2016
- Offline
- animationalex
- Member
- 53 posts
- Joined: March 2018
- Offline
- animationalex
- Member
- 53 posts
- Joined: March 2018
- Offline
- Xue_Yue
- Member
- 56 posts
- Joined: June 2016
- Offline
Ah, I have to say I didn't fully understand what you wanted to achieve. If you use the point expression like that you can directly access the elements of a vector attribute ("attr" is a vector point attribute in this case):
So you don't have to split it with vex before your ramp.
So you don't have to split it with vex before your ramp.
Edited by Xue_Yue - June 13, 2023 12:40:31
- animationalex
- Member
- 53 posts
- Joined: March 2018
- Offline
Xue_Yue
Ah, I have to say I didn't fully understand what you wanted to achieve. If you use the point expression like that you can directly access the elements of a vector attribute ("attr" is a vector point attribute in this case):
So you don't have to split it with vex before your ramp.
Awesome, thank you so much for all your help!
-
- Quick Links