procedural path to texture map

   2185   2   0
User Avatar
Member
58 posts
Joined: July 2013
Offline
Hello!
I have a Attribute Wrangle with string:
s@pathid = “$JOB” + “/id/map/”+detail(0, “matName”,0)+“_id.png”;

it make a detail attribute like that:
CUsers/Danil/Documents/HoudiniProjects/Nervous/id/map/Vertebra_thoracica_thvi_id.png

why i can`t use @pathid in Texture Map of node attribfrommap? how to do it right?
Edited by Danil Shaposhnikov - July 30, 2018 09:55:59

Attachments:
screen.jpg (90.4 KB)

User Avatar
Member
8539 posts
Joined: July 2007
Online
you can't use local variables in Attribute From Map, which is what you are trying to do

however since your attrib is detail you can directly grab the value using detail() or details() expressions

so in your case:
`details(0, "pathid")`

if however you want to use multiple color maps for different sets of points you can just create s@cmap point attribute holding your paths and Attrib From Map will automatically use that value per point instead of what is in the filename parameter
thanks to the fact that it's build using VOPs and any Parameter vop can be automatically overriden with attributes of the same name, class and type
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
58 posts
Joined: July 2013
Offline
Thanks a lot, Tomas.
  • Quick Links