Notifications
Clear all
[Closed] relative path name in filename
Mar 07, 2008 8:34 am
I wonder if somebody knows the rules of syntax for relative filesnames ?
For Example when I write:
myFilename=”.\ extures\myTexture.jpg”
the “.” refers to the current directory.
I wonder if somebody knows the official syntax ?
Thanks
2 Replies
Mar 07, 2008 8:34 am
Look at PathConfig Struct in the MaxScript Help. “…” is shown as a relative path, while “.” is shown as a normalized path. This Struct also has ways to convert to relative paths etc. Try using pathConfig.convertPathToRelativeTo <path1> <path2> to see what is returned.
-Eric
Mar 07, 2008 8:34 am
Fantastic! That is exactly for what I looked.
The various tools for the conversion are really useful also.
I had begun to write similar functions because I ignored that they already existed.
Thank you very much PiXeL_MoNKeY