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!
hou.hipFile
1917 1 1- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
sorted with hou.hscriptExpression
path = hou.hscriptExpression(“$HIP”)
path = hou.hscriptExpression(“$HIP”)
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- Quick Links