Home Technical Talk

Custom toolbar issues

coldside
polycounter lvl 10
Offline / Send Message
coldside polycounter lvl 10
Hey Everyone,

I'm having some issues with custom 3ds Max toolbars I have created. When I first made my toolbar, it looked like this:

toolbarproper.jpg

But when I restart Max, it looks like this:

toolbarbroken.jpg

If I right click on the buttons and say Edit Button Appearance and then just hit OK on the window that comes up, it goes back to looking how it should.

I have "Fixed width text buttons" under preferences turned off.

I have tried numerous times to save my CustomUI, and maxstart.max, but it keeps getting broken again when opening max.

Any ideas how to fix this? Driving me insane.

And my second issue is that I have created another custom toolbar, this time using custom .bmp files for the button image:

toolbariconcolorissues.jpg

But it appears the buttons are slightly transparent, have the wrong gamma, or low contrast. But opening the .bmp in Photoshop or Irfan View, they look fine. I do not have any viewport gamma correction turned on in 3ds max settings.

Hope someone can help!

Daniel.

Replies

  • coldside
    Offline / Send Message
    coldside polycounter lvl 10
    Just as an update, I have tried removing all of my preferences and reverting to default, that didn't help. And I tried removing all my start up scripts, but it made no difference.
  • coldside
    Offline / Send Message
    coldside polycounter lvl 10
    I worked out what my issues were, so thought I would post here for anyone who has the same issue in the future.

    The first issue, of Text toolbar buttons not displaying the proper width was fixed by creating custom buttons. Originally, I was just dragging macros from the Customize UI- Toolbars menu, which are installed with the scripts.

    The problem with these, was the macros were created with a specified image to use for the button. Simply editing out the button image in the macro wasn't a solution, as it would create issues.

    So I simply looked in the macros to see what scripts they were calling when activated, and made custom drag and drop macros utilizing the same commands.


    The second issue was caused by the custom .bmp not having an accompanying alpha or matte channel.

    From the MaxScript help is this section I skimmed over while reading the first time:

    "If the mask channel bitmap files are present, they are used. If the mask channel bitmap files are not present, then the alpha channel bitmap files are used. If neither the mask nor alpha channel data bitmap files are present, then the color of the upper-left pixel is deemed the transparent color, and a mask is generated automatically for the image bitmaps."

    So the colors used in my custom button images was causing the transparency issues. To fix, I simply created a solid white image the same size as the button, and named it xx_16i.bmp or xx_24i.bmp

    I hope this will be of some help to anyone who has a similar issue in the future.

    Cheers,

    Daniel.
  • cw
    Offline / Send Message
    cw polycounter lvl 17
    thanks for the info! :)
Sign In or Register to comment.