MTLX Image file name from attribute

   522   3   2
User Avatar
Member
65 posts
Joined: 9月 2008
オフライン
Hi, there.
I have images named img_0.png, img_1.png,...
Also, there are attribute named layer with values 0, 1, 2,...
How can I set the file name field of MTLX Image node so that the file name corresponds to layer attribute?
Edited by ifree - 2025年10月9日 07:44:55
User Avatar
Member
15 posts
Joined: 12月 2017
オフライン
Hi ifree,
here's a scene for this stuff
not from me

Attachments:
ts_texture_per_prim_variation_20.5.hipnc (296.0 KB)

User Avatar
Member
9312 posts
Joined: 7月 2007
オンライン
or in 21 you can directly use string primvars to override filepath without creating additional materials, here is the updated file

Attachments:
ts_texture_per_prim_variation_21.hipnc (342.0 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
65 posts
Joined: 9月 2008
オフライン
Thanks, Hip_freak and tamte.
  • Quick Links