|
|||||
|
|
#1 |
|
Not a zombie.
Join Date: Jan 2004
Location: P-town
Posts: 1,547
Thanks: 7
Thanked 32 Times in 20 Posts
|
button load max scene (max6 sp1)
Im really flying by the seat of my pants, I've never done any type of scripting before so I'm really lost.
What I'm trying to do is use the VMS editor to make a menu with a button, when you hit the button it load a specified max scene. which looks something like this: rollout unnamedRollout "Open Scene" width:162 height:300 ( button btn2 "Button" pos:[10,15] width:106 height:29 on btn2 pressed do do getOpenFileName $max/scenes/blueprint.max ) and I get an error from my listner >> MAXScript FileIn Exception: -- Syntax error: at ), expected while -- In line: ) << I really have no clue, and the few referance files that came with max arnt much help. Any help would be appricated, hopefully someone will read this... this part of the forum seems alittle dead. ![]() |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb 2003
Location: India
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
|
You have an extra do in the getOpenFileName line. and moreover getOpenFileName only displays the open dialog box. Your code should look like this:
rollout unnamedRollout "Open Scene" width:162 height:300 ( button btn2 "Button" pos:[10,15] width:106 height:29 on btn2 pressed do loadmaxFile "$max/scenes/blueprint.max" ) createDialog (unnamedRollout) cheers Blesson |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|