首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >图像按钮Maxscript?

图像按钮Maxscript?
EN

Stack Overflow用户
提问于 2015-08-06 04:30:56
回答 1查看 978关注 0票数 0

嘿,伙计们,我正试着在3dsmax/Maxscript的一个按钮上添加一个图像,这就是我到目前为止所拥有的,我有点卡住了,试图弄清楚,

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2015-08-18 19:27:04

创建图像按钮的一种简单方法:

代码语言:javascript
复制
    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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31842251

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档