CGTalk > Software Specific Forums > Autodesk Maya > Maya Programming
To minimize the ads you see on this page create a CGTalk account and log in HERE
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 11-21-2012, 11:42 PM   #1
DeadlyNightshade
Plz...
 
DeadlyNightshade's Avatar
portfolio
Martin Dahlin
Jr. Technical Artist
King
Stockholm, Sweden
 
Join Date: Jul 2012
Posts: 892
Keeping something highlighten in a textScrollList

I have a textScrollList for displaying all UV-sets on a mesh (similiar in structure as the default one in the UV Set Editor -window).

One problem with it is that it doesn't keep the active UV set highlighted: if the user selects some other UV, face or edge - or switches selection type - it loses it's highlighting.

I assume one could add something for this via a scriptJob - but there doesn't seem to be any flag or anything for just highlighting an item in a textScrollbar.
__________________
Nightshade UV Editor (script for Maya) - Extends Maya's default UV Texture Editor with additional tools.
 
Old 11-22-2012, 11:09 AM   #2
NaughtyNathan
HighEnd3D deserter
 
NaughtyNathan's Avatar
Naughty Nathan
Technical Artist
Sony SCEE Liverpool
Manchester, United Kingdom
 
Join Date: May 2008
Posts: 2,608
sure there is:
Code:
textScrollList -edit -selectItem "map1" myTextScrollList;

you simply need to create a scriptJob that fires off on SelectionChanged event, and the function it calls then checks the relevent UV set and highlights the appropriate one in your TextScrollList (or repopulates the entire list, which it probably should be doing anyway)

don't forget to always parent your scriptJobs to the UI that creates them (if any) so they don't hang around after the user has finished with and closed your tool.
 
Old 11-22-2012, 11:12 AM   #3
DeadlyNightshade
Plz...
 
DeadlyNightshade's Avatar
portfolio
Martin Dahlin
Jr. Technical Artist
King
Stockholm, Sweden
 
Join Date: Jul 2012
Posts: 892
Alright great.
Thanks again Nathan. You are a walking MEL-library of knowledge.

Yea I got all my scriptJobs parented to my UI stuff already.
__________________
Nightshade UV Editor (script for Maya) - Extends Maya's default UV Texture Editor with additional tools.
 
Old 11-22-2012, 11:12 AM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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 06:27 PM.


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