[Closed] Turn exact copies into instances?
Hi,
Does anyone know if it is possible to turn an exact copy of an object into an instance of itself?
I know one way would be to create an instance of the object, delete the copy and replace it with the new instance. The problem with this is the new instance will not preserve the other relationships such as linking info, motion controllers and custom attributes.
So often, especially with lighting it would save time to make instances of those lights that have the same properties but for some reason or other had to be made unique at some point earlier in the process.
Does anyone have any suggestions on this subject?
Thanks
Spencer
I apoligise.
After searching this forum I found the answer easy enough.
$.baseobject = $[1].baseobject
Simple as that – I cant believe it. Great news!
BTW Snape,
the new to Max8 Clone and align tool should be this without any hassle.
Josh.
thanks j-man, Im new to that tool but looking at it im not sure if that would be able to re-create all the other relationships such as motion controllers, wire params and custom attributes.
Im actually having trouble now trying to find find exact copies of a selected object. Its much harder than I expected.
This is what Ive got so far:
exactObjSet = #()
objectPropList = #()
exactMatchList = #()
–make an array of all the property values of the selected object
currentPropNames = getPropNames $
currentPropList = #()
for i in currentPropNames do
(
prop = getProperty $ i
append currentPropList prop
)
print “selected object property values collated——————-”
–make an array of all the objects with matching properties by
–adding all objects one by one then deleting those with params
–that dont match.
fn objPropValue =
(
for i in objects do
(
append exactMatchList i
objectPropNames = getPropNames i
objectPropList = #()
for n in objectPropNames do
(
prop = getProperty i n
append objectPropList prop
)
m = 1
for p in currentPropList do
(
if p != objectPropList[m] do
(
deleteItem exactMatchList m
exit
)
m = m+1
)
)
)
objPropValue()
print exactMatchList
print “———————————————”