recall parameter changes in scripted simpleObject plugin ?

recall parameter changes in scripted simpleObject plugin ?

Anonymous
Not applicable
300 Views
0 Replies
Message 1 of 1

recall parameter changes in scripted simpleObject plugin ?

Anonymous
Not applicable
Hello there.

I'm currently working on several scripts to implement some personal primitives in max. In my quest to make them look exactly like the typical Primitives, I've bumped into that ONE problem that nobody seems to know about.

How to make the plugin recall the last parameter changes? Like the edge/center method for cylinders, the keyboard entries or the segments.

I have found something in the User Reference that describes exactly what I'm looking for. It's in MAXScript Tools and Interactions with 3ds Max > Creating MAXScript Tools > Scripted Plug-ins > Scripted Plug-in Clauses > Parameters:

parameters <name>
(.....

The optional type:#class specifies that the parameters in the parameter block are "class" parameters. This means that there is one copy of each parameter for the *all* the objects of this plug-in class; they all share the parameter. Examples of existing class parameters are the creation type and type-in parameters in a typical geometry primitive.

Isn't that great? Well, no. Just adding type:#class only makes the script fail to work. In fact, there is nothing else about that matter than those lines above. Though someone did take the time to implement that feature.
One might think that every scripter would want their parameter changes remembered in one script or another but I've been searching everywhere (the MXS User Reference, web, forums, friends...) for days now and haven't found a single example.

If someone know how to do what I described, could you please help me? Or point me in the right direction.
Many many thanks in advance!

(max 9 - XP SP2)
0 Likes
301 Views
0 Replies
Replies (0)