|
If you're going to use VBS, you'll need to use Set to get an object. Otherwise you'll get only a string.
But, even if you use Set for that, you will get an Object Collection. So if you have multiple objects selected you may have an error in your process.
I ussually use:
'VBS dim oObj : set oObj = selection(0) //JScript var oObj = selection(0)
But if you do something that changes your selection in your script, this variable will be automatically updated. So if you want to retain the first select object you'll need something like this:
'VBScript dim oObj : set oObj = getvalue(selection(0)) //JScript var oObj = getvalue(selection(0))
If you do: 'VBScript set oObj = getvalue("selectionlist")
you'll have to specify the object index like this:
oObj(0)
this will get you the first selected object.
_________________ M.Yara Character Modeler | Softimage Generalist (sort of)
|