TyPreview + Maxscript path bug
#1
Hi,


I want to configure the path of my preview with some maxscript commands. It works until i introduce a dot into the command.


For example:


That command works and give me the file name:

Code:
"$( (getFilenameFile(maxFileName)) )"  -->  "\C01_S0101_Layout_01007.mp4"





But if I want to get the length of the string and use ".count" it fails:




Code:
"$( (getFilenameFile(maxFileName)).count )"  -->  "\$( (getFilenameFile(maxFileName)).mp4"





3dsmax 2024


Tyflow v1.110




It worked perfectly few months ago. It was on 2023 but i cant say what version of tyflow.





Did i miss something ?



Thanks
  Reply
#2
I think the dot may be messing with the way relative paths are resolved. A relative path might look something like this:

Code:
.\..\..\file.ext

And having a period in your filename like that might be tricking the path resolution function into thinking it's part of some relative path syntax. The path resolution function did change a while back, which may explain the change in behavior. I'll look further into it...

Edit: found the problem - it will be fixed in the next build.
  Reply
#3
Thanks !
You're the best .
  Reply


Forum Jump: