Keeping something highlighten in a textScrollList

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  11 November 2012
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.
 
  11 November 2012
sure there is:
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.
 
  11 November 2012
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.
 
  11 November 2012
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
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:24 PM.


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