First MaxScript

First MaxScript

Anonymous
Not applicable
482 Views
3 Replies
Message 1 of 4

First MaxScript

Anonymous
Not applicable
i m trying to make my first maxscript, so i open Visual MAXScipt Editor and add some buttons and labels then save in .ms extention, but when i run it nothing happen, i restart the autodesk but same problem, i searched on google, but didnt find any solution... any idea ?
0 Likes
483 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Did you maybe overlook createDialog() ?



if myRollout != undefined do destroyDialog myRollout

rollout myRollout "" width:104 height:40
(
button thebtn "Button" pos: width:88 height:24
)
createDialog myRollout



BR
mrK
0 Likes
Message 3 of 4

Anonymous
Not applicable
i dunno, it works now, thanks man for your fast response...
0 Likes
Message 4 of 4

Anonymous
Not applicable
As mrKeyframe mentioned, Visual MAXScript is just a rollout editor. Since rollouts have multiple uses other than dialogs (modifiers, scripted objects, sub-rollouts in other dialogs, etc.), it doesn't add the code to launch the rollout as a dialog.
0 Likes