Plugin checker
Hi, I'm looking at writing a plugin in checker so everyone in the studio is on the latest version. So far I have this but I can't seem to get the doesfilexist in an array to work?
nPp = @"C:\Program Files\Autodesk\3ds Max 2014\plugins\" --Path for plugins nPc = #() append nPc #(nPp + "Quad Chamfer.dlm") append nPc #(nPp + "MultiTexture_max2014_64.dlt") append nPc #(nPp + "bulgeomatic.dlm") append nPc #(nPp + "BerconMaps_2013_64.dlt") clearlistener() print nPc[2] doesFileExist (nPc[1])
Comments
...
*** EXAMPLE ***
First we need to define some array with plugins that you need to check, let say "plugs" array or you cen use some extension instead in this form #(".dlm", ".dlo")
Below is a list of the extensions and the plug-in types :
BMI - Bitmap Manager IO DLLs.
BMF - Bitmap Manager Filter plug-ins.
BMS - Bitmap Manager Storage DLLs.
DLB - Shader plug-ins.
DLC - Controllers.
DLE - Scene Export plug-ins.
DLF - Font Loaders.
DLH - Sampler plug-ins
DLI - Scene Import plug-ins.
DLK - Filter Kernels (Anti-aliasing filters)
DLM - Modifiers.
DLO - Procedural Objects.
DLR - Renderers.
DLS - Object Snap plug-ins.
DLT - Materials and Textures.
DLU - Utility plug-ins.
DLV - Rendering Effects
DLX - MAXScript extension plug-ins.
FLT - Image Filter plug-ins.
GUP - Global Utility plug-ins.
MS - Maxscript
MSE - Encrypted maxscript
Aruguments of "checkPlugsVersion" fn
" dir: "
- here you can add any directory ei. plugins folder path
- if this argument is not supplied with some path MAXROOT folder
- will be checked
" plugsFilenames: "
- here you need to add "plugs" array that I mentioned earlier
- example
plugs = #("Quad Chamfer.dlm","MultiTexture_max2014_64.dlt","bulgeomatic.dlm")
- if this case you not need to supply " ext: " because function will use only
- extensions from "plugs" array
" ext: "
- supply this argument only if you want to check print installed
plugins by extensions
- to print installed all plugins then not supply "plugsFilenames"
and "ext" argument. Simply run below code:
checkPlugsVersion()
-----------------------------------------------------------------------
--#1 example: check plugs in max plugins folder
--#2 example: check plugs in max root folder
--#3 example: check modifier and material plugs in max plugin folder
I hope this is helpful
;)
bga
Plugins Checker
...
*** DOTNET VERSION ***
bga
.
DoesFileExist not works in your code, because nPc[1] is an array. To works use this
Tools and Scripts for Autodesk 3dsMax