Hi all, im a maxscript novice.
Im trying to swap a bitmap image in the ui with a button click. Ive tried calling a function from bitmap filename:. a variable works but not with the buttons.
so far not great:)
fn test1 =
(
img1 = @"B:\images1.jpg"
)
fn test2 =
(
img1 = @"B:\images2.jpg"
)
rollout _test "test"
(
bitmap bmp1 "Bitmap" pos:[7,11] width:146 height:121 --filename: --not sure here
button _A "A"
on _A pressed do
(
test1()
)
button _B "B"
on _B pressed do
(
test2()
))
createdialog _test
any help is appreciated
Swordslayer · 2016-01-27