afx Posted August 7, 2019 Share Posted August 7, 2019 Need to get the name of my geometry object in sops. So I can source that name and name my caches accordingly. Is there a small snipit anyone has off hand. Quote Link to comment Share on other sites More sharing options...
woodenduck Posted August 7, 2019 Share Posted August 7, 2019 opname("..") Quote Link to comment Share on other sites More sharing options...
afx Posted August 7, 2019 Author Share Posted August 7, 2019 18 minutes ago, woodenduck said: opname("..") Dont see this expression, I had to do an opfullpath() and then a split(). Quote Link to comment Share on other sites More sharing options...
woodenduck Posted August 7, 2019 Share Posted August 7, 2019 Where exactly are you entering the expression? Specific sop parameter. Quote Link to comment Share on other sites More sharing options...
kleer001 Posted August 7, 2019 Share Posted August 7, 2019 $OS ? Quote Link to comment Share on other sites More sharing options...
afx Posted August 7, 2019 Author Share Posted August 7, 2019 (edited) $OS will grab the current nodes name in SOPs, I needed the level above that in the obj context. I am doing this in a attribute wrangle node in sops. This worked string path=opfullpath(".."); string pathSplit[] = split(path, "/"); s@objPath=pathSplit[1]; Edited August 7, 2019 by afx 1 Quote Link to comment Share on other sites More sharing options...
woodenduck Posted August 7, 2019 Share Posted August 7, 2019 Ah, yes. If you have to use VEX, that's a solution. An attribcreate set to string with "objPath" in the name parameter, and opname("..") in the string parameter ,will get you the same result. 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.