setIniSetting “plugin.ini” problem Any one seen this?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 10 October 2007   #1
setIniSetting “plugin.ini” problem Any one seen this?

I have an interesting problem. If I set paths to the plugin.ini using setINIsettings and then add one manualy via Max the one added with script us lost. Some of the more interesting things are any scripts that have been stored in the path provided by setINISettings work and the scripts load. The added entry doesnt’ show up in the Max Configure System Paths dialog how ever. The path is in the file as I can open it and see the new path. Once a new path is added manualy all paths that were added via script are lost and only the ones added manualy are kept. Has any one else seen this?

Here is some code to test. You can also see that I’m using useUserProfiles=0.

InstallSettingsIni=(getDir #maxRoot)+"InstallSettings.ini"
plugInIni=(getDir #maxRoot)+"plugin.ini"

if doesFileExist InstallSettingsIni then
	setINISetting InstallSettingsIni "Least User Privilege" "useUserProfiles" "0"
if doesFileExist plugInIni then
	setINISetting plugInIni "Directories" "Plugins" "C:\\Clients\\keyFrame\\scripts\\plugins"
--edit InstallSettingsIni
--edit plugInIni
Paul Neale
Old 10 October 2007   #2
Hi Paul,

I don't know if it's related but since max9 PB1 I cannot seems to get the plugins path working anymore... Every time I add maxdir\plugins as plugin path it won't stick and on a restart the plugin path is gone. We now add plugins to stdplugins... I don't have any time delving into it further.. since we're not a big shop it's not a big problem, but I did find it weird!

Hope this info is of some use.

Online: LinkedIn
Old 10 October 2007   #3
Hi Paul,
scratch that, I WILL learn to pay more attention when reading other people's posts!



Josh. (thinking...)

Last edited by j-man : 10 October 2007 at 10:01 AM.
Old 10 October 2007   #4
Looks like it is a bug and it has been reported. At this point there really isn't a solution to it.
Paul Neale
Old 10 October 2007   #5
My hacky fix. Make the .ini manually...the "extra" ones are part of a
[Directories] ini section... my config.ini looks like this

Focus360 additional plug-ins=D:\3dsmax9\plugins\Scripted Global Functions
Afterworks Common=D:\3dsmax9\Plugins\Afterworks\Common
Blur additional plug-ins=D:\3dsmax9\plugins\Blur
V-Ray main plug-ins=D:\3dsmax9\plugins
V-Ray additional plug-ins=D:\3dsmax9\plugins\vrayplugins
Dreamscape 2.5=D:\3dsmax9\Plugins\Afterworks\Dreamscape
Texture Layers 2=D:\3dsmax9\Plugins\Texture Layers 2
mental ray 3.5 Reference=d:\3dsMax9\help\mr_reference.chm

Check to see if the extra paths are there... if not file copy the complete plugin.ini down from the server, warn the users that max is about to restart... launch a new max.... quit no prompt..

That next start you have all your plugs and stuff working...

Great bug... I really enjoyed this one...
Keith R Morrison

XP Pro x64, Win 7 - Max 2009, Max 2013 - Vray 2.30.01 - Backburner (uhg)

Last edited by Kramsurfer : 10 October 2007 at 08:22 AM.
Old 10 October 2007   #6
I'm just forcing them back in again as well each time Max starts. Once I have time I'm just going to force the entries using Python before Max starts. I will replace the the shorts cuts to Max with ones to python that make any changes that I need then launch Max.
Paul Neale
Old 10 October 2007   #7
Hi Paul,

I really want to start using python as well, but find it hard to, well, start... do you have any pointers or examples or stuff/links that got you started... which python etc... especially when working with max...

Online: LinkedIn
Old 10 October 2007   #8
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 07:12 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.