When construct

Hi all!

I have a big problem with the "When construct". I want to write a script, which help me in freeze object, but not on the common way. So: The script says what objects are free to select. It is very useful in a lot of cases, when I want a "ghost" object. The freeze selection in max is not the best, because the object got a gray (or other) color and it isn't look like the original object. And of course the script is more handleable.

The main part of the script is the next:

--
When select $Box01 changed do
Deselect($Box01)
--

I can use this "When construct" in other cases, when I want to other objects to be transformed or changed. But when I say that the selected object be changed, the max is going crazy, sometimes brake down...

Thanks your answers in advance.

Mátyás Végh

Comments

Comment viewing options

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

Hi, i do not really

Hi,
i do not really understand what your script should do with that "when" construct, maybe you could write the whole script in this topic? And i think you have a small typo there, it has to be "changes" and not "changed".
Did you know can rightclick your object, go to its properties and uncheck "Show Frozen in Gray"? You can also do this by script:

$.showFrozenInGray = on
freeze $

It will keep its original color when frozen this way.
Greetings

Never get low & slow & out of ideas

Matyrix's picture

Hello, Thanks! It was out of

Hello,

Thanks! It was out of mind, that there is a so simply solution for my problem... This display option is solved my problem.

Comment viewing options

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