Atom Posted March 21, 2016 Share Posted March 21, 2016 Hello All, I am looking for a way to get the name of the current scene using python. Thanks Quote Link to comment Share on other sites More sharing options...
graham Posted March 21, 2016 Share Posted March 21, 2016 The most Pythonic way would be to use hou.hipFile.path() (name() mostly returns a full file path so path() is more reliable) to get the full path of the file and then process the path using os.path related things to get whatever info you want from it. Technically you can also just do hou.expandString("$HIPNAME") to get the file name, sans extension. Quote Link to comment Share on other sites More sharing options...
Atom Posted March 21, 2016 Author Share Posted March 21, 2016 Thank you Graham, both techniques work. 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.