Re: Jscript:pick subcomponent

Date : Sun, 24 Feb 2008 12:02:40 +0100
To : XSI(at)Softimage.COM
From : "Ahmidou Lyazidi" <ahmidou.xsi(at)gmail.com>
Subject : Re: Jscript:pick subcomponent
Ha, Thank you Julian, the good one was 'MeshComponent'

Regards
Ahmidou

2008/2/24, Julian Johnson <julian(at)exch.demon.co.uk>:
Ahmidou Lyazidi wrote:
> Hi
> I'm trying to pick subcomponent, but I would like to filter point,
> face and edge at the same time.
> in fact I want the behavior of the contraint to cluster command when
> you directly pick the component to
> clusterize in the viewport. Unfortunally the subcompononet filter
> don't work this way
>
> Any Idea?
> Thanks

Hi Ahmidou,

It looks like there are a ton of really useful custom filters in XSI but
not explicitly documented in the SDK. For the full list see:
#python
for x in Application.Filters: LogMessage(x.Name)

One of those is PolygonMeshComponent which seems to do the job..

#python
rtn = Application.PickElement( "PolygonMeshComponent", "Select edge,
point or poly", "Select edge, point or polys", "", "", 0 )
for x in rtn:LogMessage(x)

Cheers,
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.