PDA

View Full Version : difference between maxscript and plugins?


defwind77
03-14-2006, 08:49 AM
Hi I'm just wondering if anyone can explain the difference between a max plugin and a max script - is it easy to convert between a maxscript file and a .dlu?

It seems there's very little difference in functionality as both can do the same sort of thing - but plugins seem more 'permanent' ie you install them and they're always there!

Any ideas?

Thanks!

f97ao
03-14-2006, 09:58 AM
Hi I'm just wondering if anyone can explain the difference between a max plugin and a max script - is it easy to convert between a maxscript file and a .dlu?

It seems there's very little difference in functionality as both can do the same sort of thing - but plugins seem more 'permanent' ie you install them and they're always there!

Any ideas?

Thanks!

They are technically very different. Plugins are written in c++ (which is difficult), while scripts are written in MaxScript which is pretty easy to use, even for non programmers.

C++ plugins can theoretically be far more advanced than MaxScripts, but they also normally take far longer to develope.

The box object in c++ takes about 50 pages of c++ code, but in MaxScript you can only write
"box()" and you have a box to illustrate the difference.
(This comparison is not completely fair, but it does illustrate the point).

/Andreas

soulburn3d
03-14-2006, 08:29 PM
Also plugins tend to run faster, since they're compiled. So if you're doing something that requires tons of computation, a plugin would be better. Like for example, a raytracer written in c++ would be way faster than one written in maxscript :)

- Neil

f97ao
03-15-2006, 09:23 AM
Also plugins tend to run faster, since they're compiled. So if you're doing something that requires tons of computation, a plugin would be better. Like for example, a raytracer written in c++ would be way faster than one written in maxscript :)

- Neil

A raytracer would make MaxScript explode!

That would be the absolute worst-case scenario for MaxScript. It doesn't like data computations at all, doesn't like graphics either and doesn't like big matrices.

/Andreas

soulburn3d
03-15-2006, 05:15 PM
I have a friend who wrote a maxscript raytracer about 7 years ago. He didn't know C, and did know maxscript, so he just wanted to see if it could be done. He was able to render a teapot on a ground plane in like 5 hours at 320x240 or something :) So yes, not ideal, but it can be and was done.

- Neil

stuh505
03-15-2006, 05:44 PM
Hehe, good story!

PiXeL_MoNKeY
03-15-2006, 06:45 PM
Don't tell Bobo that.


In this first of our Advanced MAXScript DVDs, Bobo introduces us to the world of 3D math, or as he puts it “how the 3D world functions under the hood…”. This DVD progresses through the theory and practical application of vector, trig, matrix and barycentric coordinate math. It will allow you to manipulate objects transforms, particles speed and motion, to easily align one object to another, and builds on all of these topics to culminate in a fully scripted ray-tracing rendering system!!

-Eric

CGTalk Moderation
03-15-2006, 06:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.