hou.hipFile

   1916   1   1
User Avatar
Member
509 posts
Joined: July 2005
Offline
heya,

I'm trying to build an OTL that I want to use as a “scene setup”.

I'm trying to create a “save hip file” buttons that will save an hip file with specific name and in specific path, although I'm having hard time with python.

from the help:

name() → str

Return the name of the current hip file.

This function may or may not return a full path. If you need to always get a full path, use hou.hipFile.path instead.


wait.. “may or may not”? … how do I get the path only, or the name only for the current hip file?

I could only get the complete filename including path with either hipFile.name() or hipFile.path() … both return same output here.


thanks!
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
User Avatar
Member
509 posts
Joined: July 2005
Offline
sorted with hou.hscriptExpression


path = hou.hscriptExpression(“$HIP”)
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
  • Quick Links