LaidlawFX 274 Posted November 9, 2017 Hello, I feel like I should know this but Houdini keeps erroring on me so I am doing something wrong. I want to read the primitive attribute Cd, multiple the values by say 6, and then add it to a new attribute called color. For the example scene, drop a box, a color sop and set it to primitive and bounding color, followed with a python sop. I am not looking for this in VEX, via nodes, or any other language. It has to be in python for this case. Thanks for the help, -Ben Share this post Link to post Share on other sites
MrScienceOfficer 53 Posted November 9, 2017 color = geo.addAttrib(hou.attribType.Prim, 'Color', hou.Vector3(0,0,0)) for prim in geo.prims() : v = hou.Vector3(prim.attribValue('Cd')) v *= 6 prim.setAttribValue('Color', v) This worked for me. Share this post Link to post Share on other sites
LaidlawFX 274 Posted November 9, 2017 Thank you, Tom. I blanked out on the for prim in geo.prims() : Share this post Link to post Share on other sites