Hi Andrew,

You should poke around in uixsiscripts.vbs in your XSI install as it has a 
bunch of selection related code that should help you figure this out.

The major selection tool mode can be accessed using:
l_SelMode = GetUserPref("SI3D_RECTSEL_REGION_MODE")

The return values are:
1: Rectangle
2: Raycast
3: Lasso
4: Freeform

For rectangle raycast you need to be in Rectangle mode and 
GetValue("Preferences.Select.rectraycast") has to also be true and you need to 
be in shaded mode etc.

Finally, paint select is a different selection tool so it is not a mode like 
the other items in the menu.
--
Brent


From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrew Prostrelov
Sent: 05 June 2017 13:20
To: Official Softimage Users Mailing List. 
https://groups.google.com/forum/#!forum/xsi_list 
<[email protected]>
Subject: Query XSI SelectTool mode (lasso, rectangle, paint etc)

Ok. Another XSI Tools question. I tried to solve it with local collective mind 
but it seems that it need global overmind help.

There are lots of stuff in commands list that helps to switch current context 
to the special select tool mode: http://c2n.me/3L34qvz
But i didn't find any commands that can get\query current SelectionTool mode 
(Lasso, Rectangle, Freeform, Paint etc).

My main goal is to perform components selection change from inside my custom 
ToolContext (add components, subs components , toggle comps etc) in same 
SelectionTool mode. So if we select for example polys with lasso we should also 
select them with lasso in CustomTool.
I mention that we always have this menu with current selection mode checked. 
Maybe we can somehow reach this menu: http://c2n.me/3L36T8U

<<attachment: winmail.dat>>

------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to