Re: AddtoSelection scripting question

Date : Fri, 11 Jan 2008 16:18:23 -0500
To : XSI(at)Softimage.COM
From : "Ajit Menon" <xsiajit(at)gmail.com>
Subject : Re: AddtoSelection scripting question
Thanks for the tip Julian.
The error might then be in the first part of the script which attempts to pick a random percentage number of indices from the selection set.
Is there a way to error catch/ still continue the process without breaking it in this scenario?

cheers!!
 
 
On 1/11/08, Julian Johnson <julian(at)exch.demon.co.uk> wrote:
Ajit - one of the problems with your current script is that occasionally
you're selecting an object ('null', say) and then your random object
picker is picking the same object and trying to add it to the selection
- this is causing XSI to error out. Maybe worth looking at that? If you
try something like this:

SelectObj("lattice", null, true);
AddToSelection("lattice", null, true);

..then you get the same error you're getting.
Julian
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.