Unable to convert: $selection to type: <node> ----- Why?
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:
assetUnproxyPUB = $
cnt01 = container size:50 name:h1
cnt01.displaylabel = true
cnt01.localDefinitionFilename = h1 + "_container"
cnt01.SetLockedContents #lockAllAnimation true
Sometimes it works, sometimes it doesn't.
Sometimes maxscript replys: "Unable to convert: $selection to type: "
and highlights this line:
Does anybody have an idea what could be the reason for this and how to deal with it?
Thank you so much! :)