def __init__(self): object.__init__(self)
def __init__(self, httpGet, callFunc=None): object.__init__(self) self.callFunc = callFunc self.httpGet = httpGet
def __init__(self, ftpGet, callFunc=None): object.__init__(self) self.callFunc = callFunc self.ftpGet = ftpGet
def __init__(self): object.__init__(self) self._controls = None self._mode_callback = None self._reset()
def __init__(self, *a, **k): object.__init__(self) logging.LoggerAdapter.__init__(self, *a, **k)
def __init__(self, **argv): object.__init__(self) self.debug = argv.get('debug', 0) if self.debug > 5: sys.stderr.write("init %r\n" % (self))
def __init__(self): object.__init__(self) self.__modules = {} self.__create_path()
def __init__(self): object.__init__(self) self._internal_components = [] self._internal_webapps = [] self._internal_sections = [] Configuration._instance = self
def __init__(self, name=None, frame_range=None, path=None, serialize=True, name_unique=False, current=False, shot=None, show=None, user=None, facility=None): """ :type name: string :param name: A name for the outline instance. This will become part of the job name. :type path: string :param path: An optional path to a native outline script. If your building an outline procedurally this argument is not required. If a name is not set, the name of the file becomes the name. :type frame_range: string :param frame_range: The frame range. Defaults to a single frame. :type current: boolean :param current: If true, all newly created layers are automatically parented to this instance. Default to false. :type shot: string :param shot: The shot name for this outline instance. If a shot is not provided, it will be looked up using the util.get_shot function. :type show: string :param show: The show name for this outline instance. If a show is not provided, it will be looked up using the util.get_show function. :type user: string :param user: The user name for this outline instance. If a user name is not provided, it will be looked up using the util.get_user function. :type facility: string :param facility: The launch facility to be used. If not specified the RENDER_TO and FACILITY environment variables will be checked. """ object.__init__(self) # If current is true, then all layer objects that get # created will automatically parent to this outline instance. if current: Outline.current = self # # The name of the outline. This is appended to # SHOW-SHOT-USER_ to form the basis of the job name. # self.__name = name # # The default frame range for an outline. The frame range # must be part of the outline data so chunked frames can # figure out their frame sets. # self.__frame_range = None self.set_frame_range(frame_range) # # The shot name for the outline. # self.__shot = shot # # The show name for the outline. # self.__show = show # # The user name for the outline. # self.__user = user # # A user-controlled hash of key value pairs that are # serialized with the outline data. # self.__args = {} # # See contsants for the description of outline modes # self.__mode = outline.constants.OUTLINE_MODE_INIT # # Stores the array of layers for this outline. To # add a new layer, use register_layer. # self.__layers = [] # # A hash of environement variables that are passed up # to opencue and then set before each frame is run. # These are set "pre" setshot, so they can be used # to modify setshot behavior. # self.__env = {} # # The launch facility to use, or None. # self.__facility = facility # # The outline session. The session is setup during the setup # phase. Every job has a unique session which maps to a # self.__session = None # # If true, an outline file is yamlized before being # copied into the outline session. If not, the script # is copied as is. Default is True. self.__serialize = serialize # # The path to a native outline script. If a path # is specified in the constructor, then it must # be a path to a native (not serialized) outline # script. # self.__path = None if path: self.__path = path # If the name was not previously set, use the name # of the outline file. This allows the user to override # the auto-naming based on the outline file name if needed. if not self.__name: self.__name = self.__get_name_by_path() # Now parse the outline script. self.parse_outline_script(path) else: # If the user does not pass in a name or a path to an # outline, give the outline a default name. if not self.__name: self.__name = "outline" if name_unique: self.__name = "%s_%s" % (self.__name, str(uuid.uuid4())[0:7])
def __init__(self, area): object.__init__(self) self.area = area self._container = None self._stretch = (10, 10) self.stretches = weakref.WeakKeyDictionary()