Hi all you good people!
I'm writing on a small script which is putting all objects in a scene into a container.
The script looks like this:
global assetproxyPUB
select objects
assetUnproxyPUB = $
cnt01 = container size:50 name:h1
cnt01.displaylabel = true
cnt01.localDefinitionFilename = h1 + "_container"
cnt01.AddNodeToContent assetproxyPUB
cnt01.SetAccessType #anythingUnlocked
cnt01.ClearLockedContents()
cnt01.SetLockedContents #lockAllAnimation true
cnt01.saveContainer true
cnt01.setOpen false
Sometimes it works, sometimes it doesn't.
Sometimes maxscript replys: "Unable to convert: $selection to type: "
and highlights this line:
cnt01.AddNodeToContent assetproxyPUB
Does anybody have an idea what could be the reason for this and how to deal with it?
Thank you so much! :)
Swordslayer · 2016-02-01