Search
-
User list
Full Version:
returning a flattened file path using hscript?
Root
»
Technical Discussion
»
returning a flattened file path using hscript?
grayOlorin
Feb. 7, 2012 00:21:13
Hi, I was wondering if it was possible to return a full file path in hscript?
basically I need to convert something like $HIP/../textures to c
mypath/textures
thank you in advance!
edward
Feb. 7, 2012 00:31:46
os.path.abspath(hou.expandString(fname))
… You will need to then replace backslashes with forward slashes if on Windows and passing the path back to Houdini
grayOlorin
Feb. 7, 2012 18:00:27
Thank you Edward! I was actually kinda of hoping to be able to do this on hscript. Is there an hscript equivalent to this expression?
thank you again
edward
Feb. 15, 2012 09:06:32
er, pythonexprf() ?
grayOlorin
Feb. 15, 2012 09:27:10
ahhh
thank you I will give it a whirl!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.
Powered by
DjangoBB