Itoo Software Forum
Forest Pack => Forest Pro (*) => Topic started by: Morne on June 10, 2022, 01:08:44 PM
-
Hi Guys
Since the new "ApplicationPlugins" took over, the old version check no longers works:
getFileVersion("$max/plugins/ForestPackPro.dlo")
Where's the file now to check against?
-
Ah, nevermind. Found it
getFileVersion(@"C:\ProgramData\Autodesk\ApplicationPlugins\ForestPackPro2022\Contents\plugins\2022\ForestPackPro.dlo")
-
....that does make it a little trickier to version check on multiple max and forestpack versions though
-
would be great if we can just get a function like max or vray to check for the version instead
something like for example:
fpversion()
or
forestpackversion()
-
I'm searching if there is some Maxscript function to get the plugins path, but i could not find anything.
If that helps, your function can be improved a bit, getting the Max version automatically:
getFileVersion(@"C:\ProgramData\Autodesk\ApplicationPlugins\ForestPackPro" + (maxversion())[8] as string + @"\Contents\plugins\" + (maxversion())[8] as string + @"\ForestPackPro.dlo")
-
yep, didnt think of that variable
thanks Carlos