嘿,伙计们,我正试着在3dsmax/Maxscript的一个按钮上添加一个图像,这就是我到目前为止所拥有的,我有点卡住了,试图弄清楚,
try(DestroyDialog ShaderBalls)catch()
Rollout ShaderBalls "ShaderBalls" width:125 height: 70
(
--Bitmap Local--
button btn_rb "RENDER" map: C:\Users\kris.cabrera\Desktop\ButtonTest.bmp pos:[10,5] width:50 height: 50
button btn_b "NORENDER" pos:[65,5] width:50 height: 50
)
createDialog ShaderBalls发布于 2015-08-18 19:27:04
创建图像按钮的一种简单方法:
rollout image_button_test "Image Button"
(
button theButton "Press To Render!" width:200 height:200
on theButton pressed do
(
-- whatever you like for example, even turning your current renderview into the button image with the code below:
--theBmp = render outputsize:[200,200] vfb:off
--theButton.images = #(theBmp, undefined, 1,1,1,1,1 )
)
)
createDialog image_button_test 210 210https://stackoverflow.com/questions/31842251
复制相似问题