Interactive/SimpleSceneLoad.py

##
## (C) Copyright 2008 Autodesk, Inc.  All rights reserved.
##
## Use of this software is subject to the terms of the Autodesk license
## agreement provided at the time of installation or download, or which
## otherwise accompanies this software in either electronic or hard copy
## form.
##

# Load a specified file, then proceed with the Showcase session.
#
# Change the value of 'sceneFile' variable to open a different scene file.
#
# Run with Showcase -script SimpleSceneLoad.py or by dragging
# SimpleSceneLoad.py and dropping it onto the Showcase executable.

from   ScriptRunner       import ScriptRunner

class SimpleExample( ScriptRunner ):
    def __init__( self, scriptName, args ):
        ScriptRunner.__init__( self, scriptName, args )

    def Main( self ):
        sceneFile = "C:/Example.a3s"

        self.sendMessageSync('STATUSBAR_SET_TEXT',
                             (("Loading Scene File : %s" % (sceneFile)),))
        self.sendMessageSync('APPLICATION_LOAD_SCENE', (sceneFile, )) 


# ===============================================================
def instantiate( scriptName, args ):
    return SimpleExample( scriptName, args )
# ===============================================================