Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Hey Bro !! How to random color by poly element via Proxy?

Hey Bro !! How to random color by poly element via Proxy?

Anonymous
Not applicable
468 Views
1 Reply
Message 1 of 2

Hey Bro !! How to random color by poly element via Proxy?

Anonymous
Not applicable

[url=http://sagame1678.com/][color=white][size=1pt][b]baover[/b][/size][/color][/url]

I have this alembic loaded via vrayProxy with 5 Material IDs. My question is, on the polys with mat ID 2, how can i random color those with ID 2? I tried every possibility with vraymultisubtex and nothing works in this case. If only we had a "random by element" that would work in this case Any help?
thankyou for reading

[url=https://baover-th.com/sagame/][color=white][size=1pt][b]sagame[/b][/size][/color][/url]

0 Likes
469 Views
1 Reply
Reply (1)
Message 2 of 2

10DSpace
Advisor
Advisor

Hi @Anonymous 

 

I think you could do this pretty easily with maxscript.  I have not worked with vray proxys or alembic, but as an example of how to assign random color to a particular group of polys of material ID=2 , the following line works on an object with a multi-subobject material assigned with standard type sub-materials.  

 

$.material[2].diffuse = random (color 0 0 0) (color 255 255 255)

 

You could use the Macrorecorder to find out the syntax for how to access the diffuse slot of your proxy material and then adapt the maxscript accordingly.  Hope this helps.

0 Likes