Jump to content

Name Of Current Scene?


Atom

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...