Instance via script


#1

Hello!

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


#2

Lookup InstanceReplace in the maxscript online help


#3

Look for Instance-O-Matic, converts copies into instances…
http://www.scriptspot.com/Main_Scripts.asp?BrowseType=Search&Sort=Name&ST=1&SearchField=swami&Page=2


#4

It’s really simple: instance $ or reference $

:thumbsup:
RH


#5

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 :slight_smile: [/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…


#6

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.