Assign created bitmap to button as icon
Hello, I want to create a bitmap image using maxscript and after to use it as icon for button in rollout.
Code logic look good, but I cant figure out why it doesn't work.
bitmapForIcon = bitmap 24 24 color:red filename:"RedIcon" rollout rl_Test "Test" width:130 height:30 ( button bt_myButton width:24 height:24 images:#(bitmapForIcon, undefined, 1, 1, 1, 1, 1) ) createDialog rl_Test
Maybe somebody know what is wrong here.