Notifications
Clear all

[Closed] Isoline – ShowCage on/off

 AXE

hey guys,

I guess this is a noob question…but it would really help me in the modelling tasks.

I was trying to make a shortcut to show/hide the Cage while modelling and using the Isoline display. I’ve succedeed to assign the S key to the “ShowCage = True” command, and the ALT + S shortcut to the “ShowCage = False”, but now I’d like to use only one key to show/hide the cage…

can someone help me out with this?..How can I assign the same key (S, for example) to show/hide the cage?

thanks

AXE

4 Replies

How about this;

showCage = (not showCage)

 AXE

thx for the reply

sorry but I’ve just started to move my first steps with MAX Script…so it’s all greek to me :shrug:

can you explain your post?

this is the command I caught to show the cage:

$.showCage = on

and this one is to hide the cage:

$.showCage = off

it looks simple…I just want to know how to associate the same shortcut the both the commands…cycling through them (on/off…on/ff) as I need.

thanks,

AXE

Sorry should have explained a bit more

The command ‘not’ takes a true/false on/off value and returns the opposite.

So to toggle your showCage state the command

$.showCage = (not $.showCage)

will look at the existing state (on or off) and set it to the opposite.

 AXE

ok, it’s perfectly clear!..and it works perfectly

thank you very much, it helped me alot!

AXE