Пример #1
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)

        self.attributes['aamode'] = TextureEnumAttribute(
            'aamode',
            self.addToOutput,
            self.prependToOutput,
            asString=True,
            nameValues=self.aAAModes)

        self.attributes['uscale'] = TextureFloatAttribute(
            'uscale', self.addToOutput, self.prependToOutput)
        self.attributes['vscale'] = TextureFloatAttribute(
            'vscale', self.addToOutput, self.prependToOutput)

        self.attributes['udelta'] = TextureFloatAttribute(
            'udelta', self.addToOutput, self.prependToOutput)
        self.attributes['vdelta'] = TextureFloatAttribute(
            'vdelta', self.addToOutput, self.prependToOutput)

        self.attributes['mapping'] = TextureEnumAttribute(
            'mapping',
            self.addToOutput,
            self.prependToOutput,
            asString=True,
            nameValues=self.aMappings)
Пример #2
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['flipxy'] = TextureBoolAttribute(
            'flipxy', self.addToOutput, self.prependToOutput)

        self.attributes['type'] = TextureEnumAttribute('type',
                                                       self.addToOutput,
                                                       self.prependToOutput,
                                                       asString=True,
                                                       nameValues=self.aTypes)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)

        self.attributes['bright'] = TextureFloatAttribute(
            'bright', self.addToOutput, self.prependToOutput)
        self.attributes['contrast'] = TextureFloatAttribute(
            'contrast', self.addToOutput, self.prependToOutput)

        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
Пример #3
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['noisedepth'] = TextureFloatAttribute(
            'noisedepth', self.addToOutput, self.prependToOutput)
        self.attributes['turbulance'] = TextureFloatAttribute(
            'turbulance', self.addToOutput, self.prependToOutput)

        self.attributes['bright'] = TextureFloatAttribute(
            'bright', self.addToOutput, self.prependToOutput)
        self.attributes['contrast'] = TextureFloatAttribute(
            'contrast', self.addToOutput, self.prependToOutput)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)

        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
Пример #4
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['brickwidth'] = TextureFloatAttribute(
            'brickwidth', self.addToOutput, self.prependToOutput)
        self.attributes['brickheight'] = TextureFloatAttribute(
            'brickheight', self.addToOutput, self.prependToOutput)
        self.attributes['brickdepth'] = TextureFloatAttribute(
            'brickdepth', self.addToOutput, self.prependToOutput)
        self.attributes['mortarsize'] = TextureFloatAttribute(
            'mortarsize', self.addToOutput, self.prependToOutput)

        self.attributes['bricktex'] = TextureColorAttribute(
            'bricktex', self.addToOutput, self.prependToOutput)
        self.attributes['mortartex'] = TextureColorAttribute(
            'mortartex', self.addToOutput, self.prependToOutput)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)
Пример #5
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
Пример #6
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['h'] = TextureFloatAttribute('h', self.addToOutput,
                                                     self.prependToOutput)
        self.attributes['lacu'] = TextureFloatAttribute(
            'lacu', self.addToOutput, self.prependToOutput)
        self.attributes['octs'] = TextureFloatAttribute(
            'octs', self.addToOutput, self.prependToOutput)
        self.attributes['gain'] = TextureFloatAttribute(
            'gain', self.addToOutput, self.prependToOutput)
        self.attributes['offset'] = TextureFloatAttribute(
            'offset', self.addToOutput, self.prependToOutput)
        self.attributes['noisesize'] = TextureFloatAttribute(
            'noisesize', self.addToOutput, self.prependToOutput)
        self.attributes['outscale'] = TextureFloatAttribute(
            'outscale', self.addToOutput, self.prependToOutput)
        self.attributes['type'] = TextureEnumAttribute('type',
                                                       self.addToOutput,
                                                       self.prependToOutput,
                                                       asString=True,
                                                       nameValues=self.aTypes)
        self.attributes['noisebasis'] = TextureEnumAttribute(
            'noisebasis',
            self.addToOutput,
            self.prependToOutput,
            asString=True,
            nameValues=self.aNoises)
        self.attributes['bright'] = TextureFloatAttribute(
            'bright', self.addToOutput, self.prependToOutput)
        self.attributes['contrast'] = TextureFloatAttribute(
            'contrast', self.addToOutput, self.prependToOutput)

        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)
Пример #7
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['distmetric'] = TextureEnumAttribute(
            'distmetric',
            self.addToOutput,
            self.prependToOutput,
            asString=True,
            nameValues=self.aDistmetrics)

        self.attributes['minkovsky_exp'] = TextureFloatAttribute(
            'minkovsky_exp', self.addToOutput, self.prependToOutput)
        self.attributes['outscale'] = TextureFloatAttribute(
            'outscale', self.addToOutput, self.prependToOutput)
        self.attributes['noisesize'] = TextureFloatAttribute(
            'noisesize', self.addToOutput, self.prependToOutput)
        self.attributes['nabla'] = TextureFloatAttribute(
            'nabla', self.addToOutput, self.prependToOutput)
        self.attributes['w1'] = TextureFloatAttribute('w1', self.addToOutput,
                                                      self.prependToOutput)
        self.attributes['w2'] = TextureFloatAttribute('w2', self.addToOutput,
                                                      self.prependToOutput)
        self.attributes['w3'] = TextureFloatAttribute('w3', self.addToOutput,
                                                      self.prependToOutput)
        self.attributes['w4'] = TextureFloatAttribute('w4', self.addToOutput,
                                                      self.prependToOutput)

        self.attributes['bright'] = TextureFloatAttribute(
            'bright', self.addToOutput, self.prependToOutput)
        self.attributes['contrast'] = TextureFloatAttribute(
            'contrast', self.addToOutput, self.prependToOutput)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)

        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
Пример #8
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['tex1'] = TextureColorAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureColorAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
        self.attributes['aamode'] = TextureEnumAttribute(
            'aamode',
            self.addToOutput,
            self.prependToOutput,
            asString=True,
            nameValues=self.aAAModes)

        self.attributes['translate'] = TextureVectorAttribute(
            'translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute(
            'rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute(
            'scale', self.addToOutput, self.prependToOutput)
Пример #9
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['noisesize']  = TextureFloatAttribute('noisesize',  self.addToOutput, self.prependToOutput)
        self.attributes['noisedepth']  = TextureIntegerAttribute('noisedepth',  self.addToOutput, self.prependToOutput)
        self.attributes['turbulance']  = TextureFloatAttribute('turbulance',  self.addToOutput, self.prependToOutput)
        self.attributes['type']       = TextureEnumAttribute('type',  self.addToOutput, self.prependToOutput, asString = True, nameValues = self.aTypes)
        self.attributes['noisetype']  = TextureEnumAttribute('noisetype',  self.addToOutput, self.prependToOutput, asString = True, nameValues = self.aNoiseTypes)
        self.attributes['noisebasis'] = TextureEnumAttribute('noisebasis',  self.addToOutput, self.prependToOutput, asString = True, nameValues = self.aNoises)
        self.attributes['noisebasis2'] = TextureEnumAttribute('noisebasis2',  self.addToOutput, self.prependToOutput, asString = True, nameValues = self.aNoises2)
        self.attributes['bright']     = TextureFloatAttribute('bright',  self.addToOutput, self.prependToOutput)
        self.attributes['contrast']   = TextureFloatAttribute('contrast',  self.addToOutput, self.prependToOutput)
        
        self.attributes['translate'] = TextureVectorAttribute('translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute('rotate', self.addToOutput, self.prependToOutput)
        self.attributes['scale'] = TextureVectorAttribute('scale', self.addToOutput, self.prependToOutput)
        
        self.attributes['tex1']   = TextureColorAttribute('tex1',  self.addToOutput, self.prependToOutput)
        self.attributes['tex2']   = TextureColorAttribute('tex2',  self.addToOutput, self.prependToOutput)