Notifications
Clear all

[Closed] Deploying the sweep.ini file

Hi all,

Ok so I’ve added a new custom shape to my sweep.ini file and everything works great. Now my problem is how do I deploy it across our network. From what I can tell the sweep modifier looks in the users/<username>/appdata/…/3dsmax/…/plugcfg directory for the sweep.ini file, if it can’t find it it generates a new one. Now does it generate this new sweep.ini file in code or does it grab it from somewhere. I’m guessing it generates it in code because I can’t find a “master” sweep.ini file. If that is the case it seems that I will have to push out the sweep.ini file to all the computers on the network and all the users on each of those computers as well as all the render machines. This is certainly doable but what if a new user on a machine tries to open a file using the new sweep shape this will result in a crash. That is basically my dilemma.

Any thoughts?
Thanks,
Rod

5 Replies

It shouldn’t the plugcfg files define the last used or default state, and should only be called when a new instance of a tools is created. It shouldn’t matter what the sweep.ini says for an already applied modifier as those settings should be stored in the scene file. I am confused on what is causing a crash.

-Eric

EDIT: Oh I see what you are saying. If you place it in the root 3dsmx\plugcfg folder it should use those settings, unless the user file exists.

i don’t clearly understand what did you add. Did you add “custom” build-in Section to INI file? Did you create extra icon for that?

as I know the Sweep Modifier doesn’t store any information about Custom Sections in INI file.

Eric,

My bad. I think the crash came when I loaded a max file saved with the new shape and loaded it into 64 bit max for which I hadn’t compiled the new shape object plugin for yet. Looks like as long as the plugin is there it can load the shape but the sweep modifier just has no listing for it in the Built-In Section drop down list. I can live with that. If someone wants to use the new shape they’ll just have to have the new icon file and sweep.ini and the shape plugin can reside in our network plugin directory so it gets loaded by everyone.

DenisT,

I actually just added a custom line segment shape which you can add to the sweep.ini file as long as you know the classid. This segment just has one length parameter. This allows me to just create a flat ribbon using the sweep modifier. Comes in pretty handy actually. Just need to add the new icon to the sweep modifiers icons and give it the number of parameters and their default values. I think you can add up to 100 new shapes.

[Segment]
   ClassID= 1987257940, 1726967863
   IconFile=Sweep_DefaultSections
   IconIndex=9
   NumDefaults= 1
   Default1= 0,float,10.000000

Thanks Guys,
Rod

i know how to add new build-in section to INI file, but in your original post you wrote “I’ve added a new custom shape to my sweep.ini…”. Which is impossible.

DenisT,

Sorry for the misunderstanding, semantics problem I think.

Rod