def __init__(self, stage='intro', pace='smooth', duration=DEFAULT_EFFECT_DURATION): Primitive.__init__(self) self.stage = stage self.epochs = initialize_epochs(stage, duration) self.pace = pace
def __init__(self, *args, **kwargs): Primitive.__init__(self, *args, **kwargs) datas = (('Width', float, 'width'), ('Depth', float, 'depth'), ('Height', float, 'height'), ('Origin', pm.Point3, 'origin')) for data in datas: self.AddAttributes(NPOAttr(*data, pyTagName=TAG_PRIMITIVE_OBJECT), parent='Box')
def __init__(self, file_name): Primitive.__init__(self) self.anchor = ORIGIN self.cardinals, self.elements = get_svg_elements(file_name) for element in self.elements: element.masters.append(self) self.external_call = False self.update_epochs()
def __init__(self, *args, **kwargs): Primitive.__init__(self, *args, **kwargs) datas = (('Radius', float, 'radius'), ('Height', float, 'height'), ('NumSegs', int, 'numSegs'), ('Degrees', int, 'degrees'), ('Axis', pm.Vec3, 'axis'), ('Origin', pm.Point3, 'origin')) for data in datas: self.AddAttributes(NPOAttr(*data, pyTagName=TAG_PRIMITIVE_OBJECT), parent='Cone')
def __init__( self, *args, **kwargs ): Primitive.__init__( self, *args, **kwargs ) datas = ( ('Width', float, 'width'), ('Depth', float, 'depth'), ('Height', float, 'height'), ('Origin', pm.Point3, 'origin') ) for data in datas: self.AddAttributes( NPOAttr( *data, pyTagName=TAG_PRIMITIVE_OBJECT ), parent='Box' )
def __init__(self, *args, **kwargs): Primitive.__init__(self, *args, **kwargs) datas = ( ("Width", float, "width"), ("Depth", float, "depth"), ("Height", float, "height"), ("Origin", pm.Point3, "origin"), ) for data in datas: self.AddAttributes(NPOAttr(*data, pyTagName=TAG_PRIMITIVE_OBJECT), parent="Box")
def __init__( self, *args, **kwargs ): Primitive.__init__( self, *args, **kwargs ) datas = ( ('Radius', float, 'radius'), ('NumSegs', int, 'numSegs'), ('Degrees', int, 'degrees'), ('Axis', pm.Vec3, 'axis'), ('Origin', pm.Point3, 'origin') ) for data in datas: self.AddAttributes( NPOAttr( *data, pyTagName=TAG_PRIMITIVE_OBJECT ), parent='Sphere' )
def __init__(self, w, h, char, parent=None, sizer_borders=(0, 0, 0, 0)): Primitive.__init__(self, (w, h), sizer_borders) self.char = char self.parent = parent
def __init__(self, anchor=ORIGIN, cardinals=DEFAULT_CARDINALS): Primitive.__init__(self) self.external_call = False self.anchor = anchor self.cardinals = cardinals