assign rand maps to objs

   3595   4   2
User Avatar
Member
326 posts
Joined: 5月 2007
オフライン
i have many geos in obj level, all of them have assigned the same matterial “/shop/mantrasurface” , but for every geo i want it has a rand color map.
so is it possible to write an expression to baseColorMap just like this“$HIP/texture/map`rand($GEOID)*10`.jpg” , or any other way?
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
スタッフ
2540 posts
Joined: 7月 2005
オフライン
You have to grab each object and in the Material tab, reference your material.
Grab and create the local shader parameter using the right arrow menu.

Insert your expression in there. You can use the opdigits(“.”) expression feeding as the seed to rand for the texture map lookup:

butterfly`floor(fit01(rand(opdigits(“.”)) , 1, 7))`.pic

See the attached example file.

Attachments:
object_rand_texmaps.hip (1.2 MB)

There's at least one school like the old school!
User Avatar
Member
326 posts
Joined: 5月 2007
オフライン
jeff
Grab and create the local shader parameter using the right arrow menu.

jeff thank you very much , is your right arrow menu means “editing parameters interface” ? when i create parameters from nodes it tells me: “node is outside subnet…”!
so should i create this parameter By Type manually?
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
300 posts
Joined: 1月 2010
オフライン
luoqiulin
jeff
Grab and create the local shader parameter using the right arrow menu.

jeff thank you very much , is your right arrow menu means “editing parameters interface” ? when i create parameters from nodes it tells me: “node is outside subnet…”!
so should i create this parameter By Type manually?

He means on the material tab of your geometry object.

Attachments:
Screenshot-Untitled Window-1.png (147.1 KB)

Drive, monkey, drive!
User Avatar
Member
326 posts
Joined: 5月 2007
オフライン
oh my god
thank you
https://vimeo.com/user3971456/videos [vimeo.com]
  • Quick Links