layerButton -color ??

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
Old 01 January 2008   #1
layerButton -color ??

Hey guys,

I was trying to ceate some UI using layerButton, somehow can't seems to set the color on layerButton UI control. It will work if I create a layer and set the layer to the control but I don't want to create a layer with it.

window;
columnLayout;
layerButton -label "myLabel" test;
showWindow;

//then when I try to set the color it doesn't work?
layerButton -edit -color 0 1.0 0 test;

any thoughts ?
 
Old 01 January 2008   #2
I don't know if it will help but I use to have problems with -bgc flag when creating color for UI window so I declare a variable first and apply it as a value.

float $r = 1;
float $g = 0;
float $b = 0;

button -bgc $r $g $b;

will return red button. Try it and let us know how it goes
__________________

 
Old 01 January 2008   #3
Base on your post, the problem you are having is you need to indicate whether the layer color is visible or transparent.

Try this


//set transparent to 0
layerButton -edit -transparent 0 test;
//then edit your color
layerButton -edit -color 0 1.0 0 test;
 
Old 01 January 2008   #4
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 07:41 AM.


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