Jump to content
dwigfor

How to use another node's name in a texture path string?

Recommended Posts

How can I use another node's name in a texture path string?  I know $OS will get the current node's name; I'd like to get the name of my 'File' node.  And then use that inside of something like e:\documents\houdiniProjects\Models\Fireplace_diffuse.tga, where 'Fireplace' is the name of my 'File' node. Or for selecting a material, like SH_Fireplace_Retopo.

Thanks!

-Dave

Share this post


Link to post
Share on other sites

opname() will return the name of a node given its full or relative path

Edited by toadstorm

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×