Im confused about how you can set attributes dynamically within the RBD Bullet Solver. In the help card for geometrywrangle node I see the following:
This is a very powerful, low-level node that lets experts who are familiar with VEX tweak attributes using code.
This node corresponds to the Geometry VOP DOP, but uses a textual VEX snippet instead of a VOP network. ...It can access information from other geometry using attributes and VEX functions.
So I would think that if I set an attribute value like
v@Cd = set(1,0,0)
inside the geowrangle, that the color of my rigid bodies after the sim would be red. But this is not the case:
What's the correct what to update attributes within the bullet solver? For example, changing the color of the rbd based on its speed?
I think this is hitting a bug in the Vulkan viewport with displaying point Cd on packed fragment prims (bug #140561), but note that to get the Cd attribute transferred to the SOP output you'll need to add Cd to the list/pattern of attributes on the solver's Output -> Attribute Transfer parameter
Aha yes! Did not know about this. I now see the Cd attribute in the output geometry! And yes looks like some kind of bug bc the color does not display in the viewport.
cwhite I think this is hitting a bug in the Vulkan viewport with displaying point Cd on packed fragment prims (bug #140561), but note that to get the Cd attribute transferred to the SOP output you'll need to add Cd to the list/pattern of attributes on the solver's Output -> Attribute Transfer parameter