TyPreview + Maxscript path bug - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html) +--- Thread: TyPreview + Maxscript path bug (/thread-4284.html) |
TyPreview + Maxscript path bug - jus2poubelle - 06-05-2024 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 RE: TyPreview + Maxscript path bug - tyFlow - 06-05-2024 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. RE: TyPreview + Maxscript path bug - jus2poubelle - 06-06-2024 Thanks ! You're the best . |