Notifications
Clear all

[Closed] Instance via script

Hello!

I’d be really appriciate for any idea how to make object instance (reference) via Max Script. I mean just sytax

4 Replies

Lookup InstanceReplace in the maxscript online help

It’s really simple: instance $ or reference $

RH

Originally posted by kiryha
[B]Hello!

I’d be really appriciate for any idea how to make object instance (reference) via Max Script. I mean just sytax [/B]

Just an addition to the helpful answers by the others.
Since in MAX about everything is an object, you might want to know that in some cases like for example with controllers,
instances are made implicitly.

For example, if you get a controller from one track and assign it to another track (in the same or other object), the controller will be instanced by default!

Same with materials, maps etc.

For example,

someMat = $Teapot01.material – get the material from a teapot
$Plane01.material = someMat – assign an INSTANCE of the material assigned to the Teapot to the Plane.

You would have to explicitly use COPY to make a unique object copy in such cases if you don’t need an instance…

JFYI…