[Closed] Image buttons
Hi everyone,
I’m just trying to create a rollout with images that serve as buttons instead of text. I’ve looked in the maxscript reference but it always seems more complicated then what i want to do. I want to start with the basic…
1 rollout containing 1 button that is represented by an image i created.
If someone as a quick and simple example of such a script that would help me a lot.
Also, where will i be putting my image in max directory and how to i “map” my image to my button?
It seems that every reference i find on the web is stepping over the very basic stuff and always goes with something fancier than what i need.
Thank you for your time
What you also can do is generate the bitmaps in memory, so you dont have to provide external bitmap files.
I suggest using dotnet that already provides good functions for generating bitmaps.
Last week I stumpled upon DrawString which is pretty useful if you want 2 different Strings for the buttonstates.
If you want I can make you an example if I have a little time.
If I remember correct LoneRobot also made a tool to convert bitmaps to strings, what you could also use for this.
I guess it depends if you provide other people with tools. Then its better this way without making a documentation like, put this bitmap in “C:\Blabbla\blabla.bmp” and then you can see the button in color.