pickbutton help
i wrote this test script to test different maxscript commands.
1-i want the "copy" button to be gray until i pick an object.
2-"theobject" will be clear from the memory at the start or end.
3-how can i use "theobject" variable to make action such as
copy or move?
rollout rlt_test "test"
(
pickbutton btnPick "Pick"
button btncopy "copy" enabled:false
on btnPick picked theObject do
(
btnPick.object = theObject
btnPick.caption = theObject.name + "-selected"
)
if theObject != undefined then
(
btnPick enabled:false
)
else
(
btnPick enabled:true
)
)
createDialog rlt_test 150 70
thanx
Comments
Great:)
Great:)
rollout rlt_test