Notifications
Clear all

[Closed] Panel with image

Greetings to all and sorry for my English.
I am looking for information on advanced 3dmax panels. I would like to put a high-resolution image of a character, and put buttons on parts of my character. Clicking the button will select the bone.

Who can guide me?

I show an image similar to what I want, but I need not be as advanced. Just make it more pleasing to the eye.
image here

6 Replies

you can use “imgtag”
search this keyword in MaxScript Reference

Well, I try to put a picture in a ImgTag PNG, but the route is erroneous, however, on a button gives no problems.
What fails?


 imgtag bmp1 "button" pos:[1,11] width:151 height:89 bitmap:("img/Des_01.bmp")
 button bmp2 "button" pos:[151,11] width:58 height:89 images:#("img/Des_2.png", undefined, 1, 1, 1, 1, 1)

I believe imagetags take “bitmaps” not bitmap paths.

Bitmaps are a maxscript data class. So it would be off the top of my head without max’s documentation in front of me something like…

imgtag bmp1 “button” pos:[1,11] width:151 height:89 bitmap:(bitmap “img/Des_01.bmp”)

The syntax is probably wrong but lookup “Bitmap” in the maxscript docs and it’ll give you the correct syntax.

I continued investigating and found this solution, but I do not work: S


Rollout CharacterRig "Select and hide"
(	
	dir = (getDir "img/Des_2.png")
	anim_bmp = openbitmap dir
	imgtag bmp1 "" pos:[1,11] width:151 height:89 bitmap:anim_bmp 

	
)


Here is working imgtag from my code:

imgTag diff_bg pos:[10,20] bitmap:(openBitmap ((GetDir #scripts)+"\\My_Tools\\Background.bmp")) transparent:black

Like you see, you have to use openBitmap to create bitmap value from file

thank you so much