Itoo Software Forum

Author Topic: Maxscript version check no longer works with new ApplicationPlugins  (Read 342 times)

Morne

  • Full Member
  • ***
  • Posts: 134
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?

Morne

  • Full Member
  • ***
  • Posts: 134
Re: Maxscript version check no longer works with new ApplicationPlugins
« Reply #1 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")

Morne

  • Full Member
  • ***
  • Posts: 134
Re: Maxscript version check no longer works with new ApplicationPlugins
« Reply #2 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

Morne

  • Full Member
  • ***
  • Posts: 134
Re: Maxscript version check no longer works with new ApplicationPlugins
« Reply #3 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()

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4044
    • iToo Software
Re: Maxscript version check no longer works with new ApplicationPlugins
« Reply #4 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")
Carlos Quintero
iToo Software

Morne

  • Full Member
  • ***
  • Posts: 134
Re: Maxscript version check no longer works with new ApplicationPlugins
« Reply #5 on: June 21, 2022, 04:08:30 PM »
yep, didnt think of that variable

thanks Carlos