Olivier Thériault

olivierth

About Me

Expertise
Not Specified
Location
Canada

Connect

Recent Forum Posts

imported FBX: rand Cd per shader? SOLVED April 23, 2020, 10:07 a.m.

AH!!

The function I was looking for is random_shash. I'm not exactly sure of the math behind that function but it converts a string (letters) to a long number. For example:

phone = 215330074
antenna_red = -1700732245
buttons = 2079827859
etc.

By passing those values in a rand() I was able to get different @Cd values.

-Olivier

imported FBX: rand Cd per shader? SOLVED April 23, 2020, 9:01 a.m.

Hi!

I would like to have a random point Cd for each shader I had applied in Maya. When I import that in Houdini, I can see a prim s@shop_materialpath. I'm trying to generate a float value with the rand() fonction but it doesn't work with strings.

Any tips on having one Cd value per s@shop_materialpath name?

-Olivier

bake texture: tips? April 16, 2020, 9:57 a.m.

Thanks for the infos!