【问题标题】:Image Button Maxscript?图像按钮 Maxscript?
【发布时间】:2015-08-05 20:30:55
【问题描述】:

大家好,我正在尝试将图像添加到 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

【问题讨论】:

  • 停止 try/catch 的东西。这只是 15 年前做这件事的程序员的一个坏习惯。

标签: image imagebutton maxscript


【解决方案1】:

创建图片按钮的简单方法:

    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 210

【讨论】:

    猜你喜欢
    • 2021-11-14
    • 2021-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-23
    • 2018-11-21
    • 1970-01-01
    相关资源
    最近更新 更多