Random color per object

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
agnes_io
Licensed Customer
Posts: 24
Joined: Thu May 28, 2015 12:16 pm

I know you can get random color per instance, but it would be very useful if it was possible to get a random color for any object in the scene, like redshift and arnold can do, to use for texture offsets or color offsets. There is a workaround to use mograph but that is not always practical.

Is there any way to do this in OSL?
User avatar
bepeg4d
Octane Guru
Posts: 10352
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
you can do it also with c4doctane, with a couple of clicks.
Select all the desired objects, apply an Octane Object tag, and enter num in the Instance ID field, to assign a different sequential number to each object.
Then use the Instance Range node to pilot a gradient, or an OSL random projection node:
880CD5A2-BD7A-4219-9A31-73F771A86CC4.jpeg
ciao Beppe
agnes_io
Licensed Customer
Posts: 24
Joined: Thu May 28, 2015 12:16 pm

Great tip, thanks!

But where is the OSL random projection node? Can only see 'OSLProjection' which doesn't seem to do much...
Post Reply

Return to “Maxon Cinema 4D”