Currently you can't use the Cd or other attributes with Octane. Octane can't read variables from the host application at render time (all the code must be executed in the GPUs, and at render time I don't have access to external variables). This is something that I hope that Octane 3 could fix with the OSL shading.
You need a workaround. You could add to the scene a Octane shader for each random color that you need, and randomize the "shop_materialpath" attribute in the primitives at SOP level. Attached you have a sample scene and a screen grab about this workflow.
- (20.79 KiB) Downloaded 137 times
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini