Notifications
Clear all

[Closed] How does it open another script by help button?

hi everybody, pls HELP my

I have a question. How does it create new dialog if i click on the button?
How does it open another script by help button?

rollout rolloutcreator "Untitled" width:162 height:300
 (
 	button btn1 "Button" pos:[36,31] width:68 height:42
 	on btn1 pressed  do
 		(
 	???????????????????????????????????????????
 		)
 )
 createDialog rolloutcreator
 

THX for reply

4 Replies

Jiri,

Define another rollout before that rollout and use createDialog for it. Something like:

rollout new
rollout newX

on buttonX pressed do createDialog new 300 200

Light

Light.: THX a lot man

If you want it to execute another script when a button is pressed, use a fileIn statement, like so:

 on myButton1 pressed do ( 
	 fileIn "c:\\3dsmax7\\scripts\\script2.ms"
)

Adam Pletcher: THX for advice