>: CG Forums on 3dtotal - The best forums for CG artists :.
threedy forums home
 


top-table-gradient
Go Back   3DTotal Forums > Archives > Archives > Scripting & coding
bottom-table-gradient

Reply
 
Thread Tools Display Modes
Old 06-04-2004, 06:00 PM   #1
DeadlyFreeze
Not a zombie.
 
DeadlyFreeze's Avatar
 
 
Join Date: Jan 2004
Location: P-town
Posts: 1,547
Thanks: 7
Thanked 32 Times in 20 Posts
Awards Showcase
The Ultimate 3DTotal Award!: Only available in Platinum, given to select few for incredible service to the community. - Issue reason: For throwing one hell of a good suggestion out there. You suggested the sculpting challenge, and we ran with it. The community loves it. Nice one! Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target Reached Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target Reached! The Golden Grenade IV: For participating in the Dominance War IV and successfully finishing, well done soldier! - Issue reason: For participating in the Dominance War IV and successfully finishing, well done soldier! The Golden Grenade V: For participating in the Dominance War V and successfully finishing, well done soldier! - Issue reason:  Thumbs up!:  - Issue reason: your testicles Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge ''Death Match'' Low Poly Game Art - Bronze: 3rd place in a low poly challenge! - Issue reason: 3rd place in Low POly Comp #22 Washed Up super Hero 
Total Awards: 10
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.
__________________
DWV Work Thread... so many balls.

The mysterious guy behind you...
DeadlyFreeze is offline   Reply With Quote
Old 19-04-2004, 09:28 AM   #2
blesson2k
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
blesson2k is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
all images displayed on this site are copyright the original artists and may not be reproduced, copied or published elsewhere without their express permission