Exemple #1
0
    def __init__(my, pipeline_xml):
        my.pipeline_xml = pipeline_xml

        my.env = AppEnvironment.get()
        my.app = my.env.get_app()
        my.handlers = []
        my.package = {}
    def set_up(info):
        # set up application environment, by getting information from the info
        # object.  This info object, contains data retrieved from some
        # external source

        # get the environment and application
        env = AppEnvironment.get()

        from maya_app import Maya, Maya85

        # detect if this is Maya 8.5 or later
        app = None
        try:
            import maya
            app = Maya85()
        except ImportError:
            from pyasm.application.maya import Maya
            app = Maya()

        info.app = app
        env.set_app(app)

        env.set_info(info)

        # DEPRECATED: info object shouldn't know anything about
        # populate the info object with this information
        info.env = env
Exemple #3
0
    def __init__(self, pipeline_xml):
        self.pipeline_xml = pipeline_xml

        self.env = AppEnvironment.get()
        self.app = self.env.get_app()
        self.handlers = []
        self.package = {}
Exemple #4
0
    def handle_process2(self, process):

        self.pipeline.get_process_info(process)

        # get the handler and instantiate it
        handler_class = self.pipeline.get_handler_class(process)
        if not handler_class:
            return

        try:
            handler = AppEnvironment.create_from_class_path(handler_class)
        except ImportError:
            raise ImportError("Could not import handler class [%s]" %
                              handler_class)

        # pass relevant information to the handler
        handler.set_server(self.server)
        handler.set_package(self.package)

        # get input processes and hand over the delivery
        input_processes = self.pipeline.get_input_process_names(process)
        for input_process in input_processes:
            print "input: ", input_process
        #if self.handlers:
        #    handler.set_input( self.handlers[-1].get_output() )

        # store the handler and execute
        self.handlers.append(handler)
        handler.execute()

        # process all of the output handlers
        output_processes = self.pipeline.get_output_process_names(process)
        for output_process in output_processes:
            self.handle_process2(output_process)
Exemple #5
0
    def __init__(self, pipeline_xml):
        self.pipeline_xml = pipeline_xml

        self.env = AppEnvironment.get()
        self.app = self.env.get_app()
        self.handlers = []
        self.package = {}
Exemple #6
0
    def set_up(info):
        # set up application environment, by getting information from the info
        # object.  This info object, contains data retrieved from some
        # external source

        # get the environment and application
        env = AppEnvironment.get()

        from maya_app import Maya, Maya85

        # detect if this is Maya 8.5 or later
        app = None
        try:
            import maya
            app = Maya85()
        except ImportError:
            from pyasm.application.maya import Maya
            app = Maya()

        info.app = app
        env.set_app(app)


        env.set_info(info)

        # DEPRECATED: info object shouldn't know anything about 
        # populate the info object with this information
        info.env = env
Exemple #7
0
    def handle_process2(my, process):

        my.pipeline.get_process_info(process)

        # get the handler and instantiate it
        handler_class = my.pipeline.get_handler_class(process)
        if not handler_class:
            return

        try:
            handler = AppEnvironment.create_from_class_path(handler_class)
        except ImportError:
            raise ImportError("Could not import handler class [%s]" % handler_class)
        
        # pass relevant information to the handler
        handler.set_server(my.server)
        handler.set_package(my.package)

        # get input processes and hand over the delivery
        input_processes = my.pipeline.get_input_process_names(process)
        for input_process in input_processes:
            print "input: ", input_process
        #if my.handlers:
        #    handler.set_input( my.handlers[-1].get_output() )


        # store the handler and execute
        my.handlers.append(handler)
        handler.execute()

        # process all of the output handlers
        output_processes = my.pipeline.get_output_process_names(process)
        for output_process in output_processes:
            my.handle_process2(output_process)
Exemple #8
0
    def __init__(my, pipeline_xml):
        my.pipeline_xml = pipeline_xml

        my.env = AppEnvironment.get()
        my.app = my.env.get_app()
        my.handlers = []
        my.package = {}
Exemple #9
0
    def __init__(my):

        # need to set up the environment (don't fight it for now!)
        from pyasm.application.common import BaseAppInfo

        from pyasm.application.common import AppEnvironment
        from pyasm.application.maya import Maya85
        my.env = AppEnvironment.get()
        my.env.set_tmpdir("C:/Temp")

        my.app = Maya85()
        my.env.set_app(my.app)
Exemple #10
0
    def set_up(info):

        env = AppEnvironment.get()

        from houdini import Houdini

        app = Houdini()

        info.app = app
        env.set_app(app)

        env.set_info(info)
Exemple #11
0
    def set_up(info, application, toolkit):
        assert application
        assert info

        env = AppEnvironment.get()
    
        from xsi import XSI
        app = XSI(application, toolkit)
        info.app = app

        env.set_app(app)
        env.set_info(info)
Exemple #12
0
    def __init__(my):

        # need to set up the environment (don't fight it for now!)
        from pyasm.application.common import BaseAppInfo

        from pyasm.application.common import AppEnvironment
        from pyasm.application.maya import Maya85
        my.env = AppEnvironment.get()
        my.env.set_tmpdir("C:/Temp")

        my.app = Maya85()
        my.env.set_app(my.app)
    def set_up(info):

        env = AppEnvironment.get()

        from houdini import Houdini

        app = Houdini()

        info.app = app
        env.set_app(app)

        env.set_info(info)
Exemple #14
0
    def set_up(info):

        env = AppEnvironment.get()

        from flash import Flash

        app = Flash()

        info.app = app
        env.set_app(app)

        env.set_info(info)
Exemple #15
0
    def set_up(info, application, toolkit):
        assert application
        assert info

        env = AppEnvironment.get()
    
        from xsi import XSI
        app = XSI(application, toolkit)
        info.app = app

        env.set_app(app)
        env.set_info(info)
Exemple #16
0
    def handle_action(my, action_node, package):
        handler_cls = action_node.getAttribute("class")
        try:
            handler = AppEnvironment.create_from_class_path(handler_cls)
        except ImportError:
            raise ImportError("Could not import handler class [%s]" % handler_cls)
            
        handler.set_server(my.server)
        handler.set_package(package)

        # hand over the delivery
        if my.handlers:
            handler.set_input( my.handlers[-1].get_output() )

        my.handlers.append(handler)
        handler.execute()
Exemple #17
0
    def handle_action(self, action_node, package):
        handler_cls = action_node.getAttribute("class")
        try:
            handler = AppEnvironment.create_from_class_path(handler_cls)
        except ImportError:
            raise ImportError("Could not import handler class [%s]" %
                              handler_cls)

        handler.set_server(self.server)
        handler.set_package(package)

        # hand over the delivery
        if self.handlers:
            handler.set_input(self.handlers[-1].get_output())

        self.handlers.append(handler)
        handler.execute()
Exemple #18
0
    def __init__(self, tactic_node):
        self.tactic_node = tactic_node

        from pyasm.application.common import AppEnvironment
        self.env = AppEnvironment.get()
        self.app = self.env.get_app()
Exemple #19
0
 def __init__(self):
     self.env = AppEnvironment.get()
     self.app = self.env.get_app()
     self.server = None
     self.input = {}
     self.output = {}
Exemple #20
0
    def __init__(my, tactic_node):
        my.tactic_node = tactic_node

        from pyasm.application.common import AppEnvironment
        my.env = AppEnvironment.get()
        my.app = my.env.get_app()
Exemple #21
0
 def __init__(my):
     my.env = AppEnvironment.get()
     my.app = my.env.get_app()
     my.server = None
     my.input = {}
     my.output = {}
Exemple #22
0
    def __init__(my, tactic_node):
        my.tactic_node = tactic_node

        from pyasm.application.common import AppEnvironment
        my.env = AppEnvironment.get()
        my.app = my.env.get_app()
Exemple #23
0
    def __init__(self, tactic_node):
        self.tactic_node = tactic_node

        from pyasm.application.common import AppEnvironment
        self.env = AppEnvironment.get()
        self.app = self.env.get_app()
Exemple #24
0
 def __init__(my):
     my.env = AppEnvironment.get()
     my.app = my.env.get_app()
     my.server = None
     my.input = {}
     my.output = {}
Exemple #25
0
 def __init__(self):
     self.env = AppEnvironment.get()
     self.app = self.env.get_app()
     self.server = None
     self.input = {}
     self.output = {}