MaxScript Reference Guide

Source: Internet
Author: User
Tags ole

Frequently asked Questions FAQs

Practical Questions literal translation is a practical problem

Where working with vector Apple told some basics about vectors (also known as vectors)

The rest is about the variables inside the MaxScript, object properties, graphical interface and other issues, FAQ This section suggests to look at some of the basics and then to review.

Frequently asked questions the time to look back on the writing Better and Faster scripts this part, especially for program-born people need to be aware that this section describes some of the statements because the slow speed is not suitable for use ( such as return), also describes the alternative way. There are also some tips to make maxscript faster, such as turning off view refresh, except for statements.

HowTo How to Do

This is the Example section where moving an object to another object's surface, outputting a preview, and drawing a map directly on the surface of the model, is also part of the familiar and coming back.

MaxScript Language Reference Max script Reference

The basic part of the MaxScript is all here.

MAXScript Grammar and Class Hierarchy

This section is the syntax format and the inheritance of classes in the Max reference, which can be skipped when you are beginners, some foundation and then come back to see

Reserved Keywords, Symbols, punctuation and Variables

About the reserved word operators in MAXScript and the global variables, and most of them are not to be seen, it is important to note that the 3DS Max system Globals and MAXScript system Globals two pages, is about the global variables of Max and MaxScript. There are some settings or max values do not know how to set or read, you can go to the two pages to search.

Variables-assignment and Scope

This chapter is about the definition of variables and the scope of action, it is worth looking at a few, there are two parts to be aware of, one is the global and persistents global variable Methods This section has about how to save a global variable in the Max file method, The other is memory Allocation and garbage Collection This part is about the allocation and garbage collection, such as how much memory to maxscript and how to free the memory that is not needed.

Names,literal Constants, and Expressions

This section is about variable names, constants, and expressions. Actually can not see, in the use to realize is nothing more than A = B, a = b * C class.

Controlling program Flow

Program flow control, very important, all kinds of statement types, if, for, while, case, judgment loop, jump and exception handling are in this part, each page should take time to look at.

Creating Functions

To create a function, if you want to really save time and effort, this part also takes a look at each page, where by Reference Parameter passing to note that there are explanations and examples of value types and reference types, and Max has some function parameters marked with & As the reference type. If you don't understand, you can return to see it.  

Const and MaxScript Functions

Can be skipped, is something about Max internal definition of the type, usually do not use this part, and so on need to use the time is often understood.

Structure Definition

The structure definition, which is worth seeing, is as important as function and process control.

Values

Basic data types in MaxScript, including integer, floating-point, time, Bitmap, Keyframe, and other data types

Collections

A collection, which is simply a collection of variable types in multiple values, takes time to look like a basic data type. In fact MaxScript Language reference this part, do not need to see much.

3DS Max Objects

Get excited, it's finally the object in Max, the teapot is in this part, you need to be aware of the interfaces part of it contains a lot of interfaces, the second thing to note is Node:maxwrapper---Node Common Properties, Operators and Methods, this part is the general properties and methods of the object, such as rotation movement scaling, freezing, hiding, selecting, pivot setting and so on. The rest of the section actually needs to be checked out when you need it, without having to spend time browsing.

MaxScript tools and Interaction with 3dsMax max scripting tools and interacting with Max

This part is also very common, but the personal feeling does not need to spend too much energy, belongs to after understanding the foundation the side writes the part

Create MaxScript Tools This section contains script interface authoring, macro scripting, mouse tools and more.

Interacting with the 3ds Max User Interface

As long as it's about Max itself, it's all in this part, like the material editor, the opening of an animated record, everything.

File Access

With regard to Max's file operation, the save of Max file opens, Max's system directory, where external files access has the function of reading and setting the INI file to save and read the configuration, extract the file directory from the filename, and open and save the file's dialog box. If you need data export import, you need to pay attention to the text and binary file Input and Output, there are import and export of binary files, as for the import and export of text files, you can view the previous how to section, there are corresponding examples.

Change handlers and callbacks

This is important in that the listener and callback functions of the event are here, such as the need to execute the corresponding script when the max new file opens a file or a view refresh, or when an event like this is deleted, check out this section.

Miscellaneous Functions

This section is somewhat assorted, where executing External commands part has the way to invoke the external file Doscommand and Shelllaunch, which is equivalent to double-clicking with the mouse, then exiting and resetting 3DS Max This page has some of Max's own stuff, such as checking to see if the file has been saved. Pausing Script execution This page has sleep to allow Max to wait for a while, time stamping a page with timestamp to sample times.

OLE Automation

OLE Automation support, is a very old thing, Maxscript.reg-registery file This page has the registry file that registers Max's OLE object in the system, and can call Max from outside after registering. Other pages are an introduction to OLE, which is commonly used on Microsoft products, such as Excel, Word, and the Office software that can be called through OLE.

DotNet in MaxScript

MAX9 began to add something to MaxScript's strong complement. But if you want to understand this part, I recommend that you look at C #. Most of this part of Max's reference is the interface, in fact. NET can do a lot of things, this part if you want to introduce, you need to open another post.

Interaction with the Operating System

MaxScript interacts with the operating system, like access to the Clipboard (2008 is new, but max9 can be used.) NET to do, so to speak. NET is a powerful addition to maxscript), getting the operating system's date, getting the Windows directory, and so on.

MAXScript Debugger

MaxScript debugging operation, how to say, I personally do not like this thing ..., not easy, but nothing else available.

MaxScript Extensions

This section is about the content of one of Max's plugins, such as CS, CAT, Particleflow, Reactor, Cloth, ProBoolean.

The last one is not introduced, this concludes

MaxScript Reference Guide

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.