Message 1 of 3
Instance Replace - How to keep materials?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm using instance replace to ... errmm obviously replace a series of objects with an instanced one.
The issue I have is that it doesn't keep the materials for the original object but uses the object to be replaced material.
Am i just being blind and missing something obvious or does it not transfer the material as well?
To demonstrate, the original script that I cannibalised is as follows.
Cheers
El-d
I'm using instance replace to ... errmm obviously replace a series of objects with an instanced one.
The issue I have is that it doesn't keep the materials for the original object but uses the object to be replaced material.
Am i just being blind and missing something obvious or does it not transfer the material as well?
To demonstrate, the original script that I cannibalised is as follows.
-- Author : HanyElTiby mailto:Ha_tiby@Hotm*****
-- Version: 3ds max 4
--
--
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
rollout Instance_Replace "Make instances" width:200 height:100
(
pickbutton btn1 "Pick_master" pos: width:100 height:23
label lbl1 "Master Object :" pos: width:75 height:20
button btn3 "Make Instances" pos: width:176 height:23
on btn1 picked obj do
(
global Master_Obj = obj
btn1.text = obj.name
)
on btn3 pressed do
for i in selection do instancereplace i Master_Obj
)
rollout Help "Help" width:200 Height:60
(
label lbl5 "1 : Pick master Object first 2 : Select Objects to be instances then press Make Instances button" pos: width:180 height:45
)
-- create the rollout window and add the rollout
if InstanceReplaceFloater != undefined do
(
closerolloutfloater InstanceReplaceFloater
)
InstanceReplaceFloater = newRolloutFloater "InstanceReplace" 210 120
addRollout Instance_Replace InstanceReplaceFloater
addRollout Help InstanceReplaceFloater rolledup:true
Cheers
El-d