I have point attribute and I want use it to set different texture for each object. Point attribute is named frame and it's a number between 1 and 10. Files are named "code (1).png", "code (2).png", "code (3).png".... Ussualy to pass attribute to material network I use RSUserDataColor node, but I'm not sure how to pass that value to as a string to texture field. Filename now looks like this: $HIP/images/code ($F).png But instead of $F it should use point attribute named frame. Please help!
freshbaked Personally I'd just construct the texture paths using a wrangle in SOPs, save that as a string attrib on the geo then read that into your shader.
But how to read that into the shader. RS texture node doesn't have Filename input.
I haven't used RS in a while but pretty sure RS has it's own node for reading in images. RSImage or RSTexture or something. Isn't TextureSampler a native Houdini node? If so, you should stick to RS nodes.
If the RS image node doesn't have a plug for filename then I'm sorry but I don't have a good answer off the top of my head.
I found solution. So you can pass texture name value with material node. And in the material network add filename input and connect it with the rs texture filename.