"type:#class" in parameter block ?

Hello.

This is a question I've posted on many forums and never got an answer.

In a scripted simpleObject plug-in, I'd like the parameters to be set to default values the first time I run the plug-in but, for some of them, to remember previous changes the next time (in the same session).

In the MAXScript User Reference, Scripted Plug-in Clauses, I've found this:

parameters [type:#class] [rollout:]
. . . . .

"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."

The last sentence describes exactly what I'm looking for, but there are no further explanations nor examples. If I simply add "type:#class" to the parameter block's header, it doesn't work.
So far, nobody seems to know how to use the feature and an extensive search on the web brought nothing.

Any help would be greatly appreciated, as I've been trying to make it work for weeks now. Thanks a lot.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

I am also looking for

I am also looking for information on the matter.

Thanks in advance

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.