can chopnet process primitive attribute?

   2241   2   3
User Avatar
Member
1 posts
Joined: 12月 2006
Offline
I want to process some primitive attribute via chopnet. I use the CHOP geometry node but it seems to only read point attributes. I end up copying my primitive attribute to some dummy points as point attributes and CHOP process those points instead. Then copying back the results to my primitive attributes. This works but is there a better work flow?
User Avatar
Member
24 posts
Joined: 6月 2019
Offline
Did you find an answer?
Edited by Forests - 2020年1月3日 15:20:47
User Avatar
Member
98 posts
Joined: 7月 2005
Offline
I was hunting for an answer to this question.
After a bit of sleuthing I found an approach since the geometry chop only gives access to point attributes.

using a chops channelwrangle chop I got the Cd attribute values of the primitives.

//get Cd.g attribute value from first input field
vector clr = prim(0, "Cd", C);
V = clr.g;

Attachments:
chops_get_primitive_attribute.jpg (67.0 KB)

  • Quick Links