art3mis Posted June 25, 2017 Share Posted June 25, 2017 I'm sure I've come across the answer before but have googled quite a bit and searched thru the documentation and can't find anything What is the parameter or syntax that returns the name of the current parent node? ie In the following I need to replace <name of parent node> with a variable that actually returns the parent node's name. I assume it begins with $ $HIP/../obj/LowPoly_leaves_pack/Textures/<name of parent node>/<name of parent node>_DIFF.png Quote Link to comment Share on other sites More sharing options...
rich_lord Posted June 25, 2017 Share Posted June 25, 2017 I think you can use the opname expression for this. As you want it in a string, you need to put the expression in back ticks. For example this will give you the name if the node you are currently inside 'opname("..")' 1 Quote Link to comment Share on other sites More sharing options...
art3mis Posted June 25, 2017 Author Share Posted June 25, 2017 (edited) Thanks! Surprised there doesn't seem to be an HScript global that does this like $OS for the current node name, Would be extremely useful why applying custom shaders to many objects, for example Edited June 25, 2017 by art3mis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.