PDA

View Full Version : How does it open another script by help button?


Grakus
07-14-2005, 11:25 PM
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

Light
07-15-2005, 12:52 AM
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

Grakus
07-15-2005, 11:56 AM
Light.: THX a lot man :)

vScourge
07-16-2005, 02:42 PM
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"
)

Grakus
07-17-2005, 06:50 PM
Adam Pletcher: THX for advice

CGTalk Moderation
07-17-2005, 06:50 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.