Keep 3DLuVr online!
3DLuVr Logo
Sections
Articles
 From the Real World
 Digital Painting Series
 Featuring of...
 On the Bookshelf
Tutorials
 3ds max
 LightWave3D
 Softimage XSI
 Rhinoceros 3D
 Video Tutorials
FunZone menu
 I always wanted to be
 Talk to an employer
 Why Ask "Why"
TechZone menu
 Hardware Reviews
 Software Reviews
 Benchmarking
 Q&A, Tips & Tricks
UserZone menu
 The Artist Sites
 15 Min of Fame
 Request an Account
 Current Assignment
 Sponsors & Prizes
 Make a Submission
 Voting Booth
 Competition Rules
About menu
 Mission Statement
 Policies
 Advertising
 Comments
 Poll Archive
 Links
 How to IRC
 Donations
Login
Log in to be able to post comments to the news items, forum posts, and other facilities.
Username: 
 
Password: 
Not registered? Register!     Lost Password?
Poll
 Your New Year`s Resolution is...
Gain employment
Stop smoking/drinking/etc
Get back in shape
Find the meaning of life
Conquer the World
Absolutely nothing

    Poll Results
Comments
Want to leave us a comment about the site or in general? Click here to access the form.
ArtZone Heading
Creating a simple previewer with MXS
Added on: Sun Jul 23 2000
Page: 2 3 

Defining a Utility or Floater

When making a MaxScript you have an option to make a script with an interface or just a script that will automate a sequence of events. In this tutorial I will be showing you how to design an interface script that will allow you to preview your scenes quickly. Previewers are good for doing motion checks, checking lighting, or whatever you may want to use it for.

Step 1 - Opening the Interface

The first thing we are going to do is go execute the MaxScript button in the Utilities panel. After you have gotten the MaxScript interface rollout open, you click on the button that says, "New Script." This will bring up a type of notepad interface.
This is where you will start typing in all the code for the script.


Step 2 - Code "Starting the Script"

The first thing you will notice when we start typing the code is that it is not code at all. It is just English calling certain commands that 3dsmax can already do. So the first thing we are going to type in is the call to make the Floater. So here is the code!
    cool = newRolloutFloater "Created By Me" 228 265
    Rollout params "MaxScript 101 By Kevin Occhiuto"

To start to explain the code, the first line calls out what you are wanting for a script,
in this case we are asking for a floater by saying, "Cool = newRolloutFloater."

Next we are telling what we want for text to show up on the top, "Created By Me" ,
and lastly we are telling 3dsmax how big we want the floater to be, "228 265." The first number is the width and the second is the height.

Now for the second line of code, this is telling 3dsmax that we want a rollout of some sort to put everything in, "rollout params "My Little Previewer." The rest in the line should be self explanatory.



 
� 1997-2024 3DLuVrTM (Three Dee Lover)
Best viewed in 1024x768 or higher,
using any modern CSS compliant browser.