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-07-2012, 02:32 PM   #1
DeadlyNightshade's Avatar
Martin Dahlin
Jr. Technical Artist
Stockholm, Sweden
Join Date: Jul 2012
Posts: 925
Weird UV selection issue

$orgSel = `ls -sl`; $orgShellSel = `polySelectBorderShell 0`; select $orgShellSel; select -deselect $orgSel;

...last line does not seem to run - or it doesn't work.
However, if I manually run "select -deselect $orgSel;" afterwards, Maya does the deselection.
Inconsistency or am I missing something?
Nightshade UV Editor (script for Maya) - Extends Maya's default UV Texture Editor with additional tools.

Last edited by DeadlyNightshade : 10-07-2012 at 02:38 PM.
Old 10-07-2012, 06:39 PM   #2
HighEnd3D deserter
NaughtyNathan's Avatar
Naughty Nathan
Technical Artist
Sony SCEE Liverpool
Manchester, United Kingdom
Join Date: May 2008
Posts: 2,608
polySelectBorderShell is a wrapper script and has NO return value. $orgShellSel will always be nothing.
Old 10-07-2012, 11:20 PM   #3
Dresden, Germany
Join Date: Dec 2010
Posts: 327

And a quick way to see whats going on in variables is print($variable + "\n"); also never despise `size $variable` for debugging purposes. Saves you time and the forum threads.

Last edited by zaskar : 10-07-2012 at 11:21 PM. Reason: providing more information
Old 10-07-2012, 11:20 PM   #4
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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

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
Society of Digital Artists

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

All times are GMT. The time now is 11:58 AM.

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