layerButton -color ??

Become a member of the CGSociety

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

Thread Tools Search this Thread Display Modes
  01 January 2008
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.

layerButton -label "myLabel" test;

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

any thoughts ?
  01 January 2008
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

  01 January 2008
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;
  01 January 2008
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 06:35 AM.

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