if( Dictionary.GetObject(objFullname, false) )
//your code here
Adam Seeley wrote:
>Hi,
>
>Scripting some VB.
>
>I'm using FindChild to pick some objects out of my Scene, trouble is I want to
catch an error when an Object is not found.
>
>E.g. This works fine
>''
>CreatePrim "Cylinder", "MeshSurface", "mycyl"
>set oObj = ActiveSceneRoot.FindChild("mycyl")
>logmessage oObj.name
>''
>
>
>But *this* returns the error " Object required: 'oObj' "
>''
>set oObj = ActiveSceneRoot.FindChild("i_dont_exist")
>logmessage oObj.name
>''
>
>The "set" command works, but I can't check the contents as it doesn't exist to
access!
>
>I've tried this to catch the error but it always returns False whether it
exists or not.
>''
>logmessage IsNull(oObj)
>
>
>Any pointers welcome,
>
>Thanks,
>
>Adam.
>
>
>
>
>
>
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.5.472 / Virus Database: 269.8.11 - Release Date: 06/06/2007 00:00
>
>
>---
>Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
>unsubscribe xsi
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi