Notifications
Clear all

[Closed] Max script help? now: checkbox?

Hi I’m trying to create a “control panel” in max to control a moving head lamp that I have made the problem is that I’m very new to max script (this is my first max script).

   I want to control different things like the movement of the head and  turning on/off the light choosing color and pick object to follow  changing lens etc. 
   
   I'm taking it in small step so right now I'm trying to do that if I  press RUN and the a check box"random" is Not checked then it should do  as it does now and if it checked then the lamp should move randomly but I  haven't  written  that code yet so if its checked then it should just  message checked for now.
   
   and how do I wright only text? like I have in the PS image: left, right,10x, etc

I'm going to post more questions in this thread later when this is solved and I'm stuck on something else, (I'm sure I will)
   
   Render of the Moving head lamp:
   (4096x3072 open in new window for full res)
   [img] http://patan77.com/download/MovingHeadLamp.jpg [/img]
   
   the rig:
   [img] http://www.patan77.com/help/03/01.JPG [/img]
   
   The control panel that I have now:
   [img] http://www.patan77.com/help/03/05.JPG [/img]
   
   The control panel I'm trying to do right now(made in Photoshop)
   [img] http://www.patan77.com/help/03/06.jpg [/img]
   
 the code right now:


   [b]#VIDEO[/b] of what I have now: 
   [ http://www.patan77.com/video/movinghead2.mp4 ]( http://www.patan77.com/video/movinghead2.mp4) 

EDIT/UPDATE:

This is the Control panel I have now and all controls on it works now, the random buttons too

   EDIT/Update 2

This is the current state of the control panel everything works, but I still don’t get it how I should disable spinner.

Edit/Update 3
working on pick to follow


   my website: [ http://www.patan77.com ]( http://www.patan77.com) 
5 Replies

Hi Patan77,
make sure to read up on all available MaxScript UI controls; there is tons of interesting stuff.

The one you are looking for, a “text only” control, is called Label.

In case you need extra functionality such as changing fore\background color, text alignment and font, you can use a ‘.NET Label’ control and resort to Microsoft’s .NET reference to know how to use it. After you get the hang of it it’s very natural.

1 Reply
(@patan77)
Joined: 11 months ago

Posts: 0

Thanks for your tips, the label worked great (:

This is how it looks now:

Whats the code for disable spinner? like in this pic:

spinner.enabled=false

1 Reply
(@patan77)
Joined: 11 months ago

Posts: 0

How should I implement that?

this is what I tried but it doesn’t work: