Example #1
0
 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
Example #2
0
    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()
Example #4
0
    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')
Example #5
0
 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' )
Example #6
0
    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")
Example #7
0
 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
Example #9
0
 def __init__(self, anchor=ORIGIN, cardinals=DEFAULT_CARDINALS):
     Primitive.__init__(self)
     self.external_call = False
     self.anchor = anchor
     self.cardinals = cardinals