CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 10-13-2011, 01:13 AM   #1
Inos
New Member
portfolio
Inos Tranac
Prague, Czech Republic
 
Join Date: Dec 2010
Posts: 27
Problem with lasso selection on custom shape

Hello everyone,

I have a custom shape consisting of multiple components. When I use the standard rectangular selection tool over this node, everything works fine and only the selected components get highlighted.

However, when the lasso tool is used, the node's internal selection method gets called 10-20 times in a row, and it ends up selecting nothing (the first call selects the correct components, but subsequent calls override it).

Does anyone know what could cause this behavior?

Thanks,
Inos
 
Old 10-15-2011, 12:32 PM   #2
Inos
New Member
portfolio
Inos Tranac
Prague, Czech Republic
 
Join Date: Dec 2010
Posts: 27
I found that no matter what I do (even nothing) in the Select method of the ShapeUI, it will get called multiple times by Maya when the Lasso Selection tool is used.

This should mean that there has to be a way to defend from subsequent calls to the Select method, when only the first one is correct.

But on the other hand, this seems like going against Maya's workflow, and besides, how can you know if the call to the Select method is valid or not, when it is being called directly from inside the Maya code, which you can't debug or pass additional information from?

P.S: The regular Select tool is working properly.

Cheers,
Inos
 
Old 10-15-2011, 12:32 PM   #3
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:27 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.