Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Morne on June 10, 2022, 01:08:44 PM

Title: Maxscript version check no longer works with new ApplicationPlugins
Post 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:
Code: [Select]
getFileVersion("$max/plugins/ForestPackPro.dlo")
Where's the file now to check against?
Title: Re: Maxscript version check no longer works with new ApplicationPlugins
Post by: Morne on June 10, 2022, 01:11:58 PM
Ah, nevermind. Found it

Code: [Select]
getFileVersion(@"C:\ProgramData\Autodesk\ApplicationPlugins\ForestPackPro2022\Contents\plugins\2022\ForestPackPro.dlo")
Title: Re: Maxscript version check no longer works with new ApplicationPlugins
Post by: Morne on June 10, 2022, 01:13:06 PM
....that does make it a little trickier to version check on multiple max and forestpack versions though
Title: Re: Maxscript version check no longer works with new ApplicationPlugins
Post by: Morne on June 13, 2022, 12:27:17 AM
would be great if we can just get a function like max or vray to check for the version instead

something like for example:

Code: [Select]
fpversion()
or

Code: [Select]
forestpackversion()
Title: Re: Maxscript version check no longer works with new ApplicationPlugins
Post by: iToo on June 13, 2022, 10:09:09 AM
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:

Code: [Select]
getFileVersion(@"C:\ProgramData\Autodesk\ApplicationPlugins\ForestPackPro" + (maxversion())[8] as string + @"\Contents\plugins\" + (maxversion())[8] as string + @"\ForestPackPro.dlo")
Title: Re: Maxscript version check no longer works with new ApplicationPlugins
Post by: Morne on June 21, 2022, 04:08:30 PM
yep, didnt think of that variable

thanks Carlos