Ejemplo n.º 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)
Ejemplo n.º 2
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

        self.attributes['color1'] = TextureColorAttribute(
            'color1', self.addToOutput, self.prependToOutput)
        self.attributes['color2'] = TextureColorAttribute(
            'color2', self.addToOutput, self.prependToOutput)
        self.attributes['contrast'] = TextureFloatAttribute(
            'contrast', self.addToOutput, self.prependToOutput)
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

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

        self.attributes['time'] = TextureFloatAttribute(
            'time', self.addToOutput, self.prependToOutput)
        self.attributes['timeRatio'] = TextureFloatAttribute(
            'timeRatio', self.addToOutput, self.prependToOutput)

        self.attributes['threshold'] = TextureFloatAttribute(
            'threshold', self.addToOutput, self.prependToOutput)
        self.attributes['amplitude'] = TextureFloatAttribute(
            'amplitude', self.addToOutput, self.prependToOutput)
        self.attributes['ratio'] = TextureFloatAttribute(
            'ratio', self.addToOutput, self.prependToOutput)
        self.attributes['ripplesX'] = TextureFloatAttribute(
            'ripplesX', self.addToOutput, self.prependToOutput)
        self.attributes['ripplesY'] = TextureFloatAttribute(
            'ripplesY', self.addToOutput, self.prependToOutput)
        self.attributes['ripplesZ'] = TextureFloatAttribute(
            'ripplesZ', self.addToOutput, self.prependToOutput)
        self.attributes['depthMin'] = TextureFloatAttribute(
            'depthMin', self.addToOutput, self.prependToOutput)
        self.attributes['depthMax'] = TextureFloatAttribute(
            'depthMax', self.addToOutput, self.prependToOutput)

        self.attributes['frequencyRatio'] = TextureFloatAttribute(
            'frequencyRatio', self.addToOutput, self.prependToOutput)
        self.attributes['bias'] = TextureFloatAttribute(
            'bias', self.addToOutput, self.prependToOutput)
Ejemplo n.º 6
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

        self.attributes['snowColor'] = TextureColorAttribute(
            'snowColor', self.addToOutput, self.prependToOutput)
        self.attributes['rockColor'] = TextureColorAttribute(
            'rockColor', self.addToOutput, self.prependToOutput)

        self.attributes['amplitude'] = TextureFloatAttribute(
            'amplitude', self.addToOutput, self.prependToOutput)
        self.attributes['snowRoughness'] = TextureFloatAttribute(
            'snowRoughness', self.addToOutput, self.prependToOutput)
        self.attributes['rockRoughness'] = TextureFloatAttribute(
            'rockRoughness', self.addToOutput, self.prependToOutput)
        self.attributes['boundary'] = TextureFloatAttribute(
            'boundary', self.addToOutput, self.prependToOutput)
        self.attributes['snowAltitude'] = TextureFloatAttribute(
            'snowAltitude', self.addToOutput, self.prependToOutput)
        self.attributes['snowDropoff'] = TextureFloatAttribute(
            'snowDropoff', self.addToOutput, self.prependToOutput)
        self.attributes['snowSlope'] = TextureFloatAttribute(
            'snowSlope', self.addToOutput, self.prependToOutput)
        self.attributes['depthMax'] = TextureFloatAttribute(
            'depthMax', self.addToOutput, self.prependToOutput)
Ejemplo n.º 7
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['defaultColor']   = TextureColorAttribute('defaultColor',  self.addToOutput, self.prependToOutput)
        self.attributes['colorGain'] = TextureColorAttribute('colorGain',  self.addToOutput, self.prependToOutput)
        self.attributes['colorOffset']   = TextureColorAttribute('colorOffset',  self.addToOutput, self.prependToOutput)
        
        self.attributes['alphaGain']  = TextureFloatAttribute('alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset']  = TextureFloatAttribute('alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance']  = TextureBoolAttribute('alphaIsLuminance', self.addToOutput, self.prependToOutput)



        self.attributes['gapColor']  = TextureColorAttribute('gapColor', self.addToOutput, self.prependToOutput)
        self.attributes['uColor']  = TextureColorAttribute('uColor', self.addToOutput, self.prependToOutput)
        self.attributes['vColor']  = TextureColorAttribute('vColor', self.addToOutput, self.prependToOutput)

        self.attributes['uWidth']  = TextureFloatAttribute('uWidth', self.addToOutput, self.prependToOutput)
        self.attributes['vWidth']  = TextureFloatAttribute('vWidth', self.addToOutput, self.prependToOutput)
        self.attributes['uWave']  = TextureFloatAttribute('uWave', self.addToOutput, self.prependToOutput)
        self.attributes['vWave']  = TextureFloatAttribute('vWave', self.addToOutput, self.prependToOutput)
        self.attributes['randomness']  = TextureFloatAttribute('randomness', self.addToOutput, self.prependToOutput)
        self.attributes['widthSpread']  = TextureFloatAttribute('widthSpread', self.addToOutput, self.prependToOutput)
        self.attributes['brightSpread']  = TextureFloatAttribute('brightSpread', self.addToOutput, self.prependToOutput)
Ejemplo n.º 8
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['gammaX'] = TextureFloatAttribute(
            'gammaX', self.addToOutput, self.prependToOutput)
        self.attributes['gammaY'] = TextureFloatAttribute(
            'gammaY', self.addToOutput, self.prependToOutput)
        self.attributes['gammaZ'] = TextureFloatAttribute(
            'gammaZ', self.addToOutput, self.prependToOutput)

        self.attributes['value'] = TextureColorAttribute(
            'value', self.addToOutput, self.prependToOutput)
Ejemplo n.º 9
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

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

        self.attributes['cellColor'] = TextureColorAttribute(
            'cellColor', self.addToOutput, self.prependToOutput)
        self.attributes['creaseColor'] = TextureColorAttribute(
            'creaseColor', self.addToOutput, self.prependToOutput)

        self.attributes['cellSize'] = TextureFloatAttribute(
            'cellSize', self.addToOutput, self.prependToOutput)
        self.attributes['density'] = TextureFloatAttribute(
            'density', self.addToOutput, self.prependToOutput)
        self.attributes['spottyness'] = TextureFloatAttribute(
            'spottyness', self.addToOutput, self.prependToOutput)
        self.attributes['randomness'] = TextureFloatAttribute(
            'randomness', self.addToOutput, self.prependToOutput)
        self.attributes['threshold'] = TextureFloatAttribute(
            'threshold', self.addToOutput, self.prependToOutput)
Ejemplo n.º 10
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

        self.attributes['inflection'] = TextureBoolAttribute(
            'inflection', self.addToOutput, self.prependToOutput)
        self.attributes['depthMax'] = TextureIntegerAttribute(
            'depthMax', self.addToOutput, self.prependToOutput)
        self.attributes['numWaves'] = TextureIntegerAttribute(
            'numWaves', self.addToOutput, self.prependToOutput)

        self.attributes['threshold'] = TextureFloatAttribute(
            'threshold', self.addToOutput, self.prependToOutput)
        self.attributes['amplitude'] = TextureFloatAttribute(
            'amplitude', self.addToOutput, self.prependToOutput)
        self.attributes['ratio'] = TextureFloatAttribute(
            'ratio', self.addToOutput, self.prependToOutput)
        self.attributes['frequencyRatio'] = TextureFloatAttribute(
            'frequencyRatio', self.addToOutput, self.prependToOutput)
        self.attributes['time'] = TextureFloatAttribute(
            'time', self.addToOutput, self.prependToOutput)
        self.attributes['frequency'] = TextureFloatAttribute(
            'frequency', self.addToOutput, self.prependToOutput)
        self.attributes['implode'] = TextureFloatAttribute(
            'implode', self.addToOutput, self.prependToOutput)
        self.attributes['implodeCenterU'] = TextureFloatAttribute(
            'implodeCenterU', self.addToOutput, self.prependToOutput)
        self.attributes['implodeCenterV'] = TextureFloatAttribute(
            'implodeCenterV', self.addToOutput, self.prependToOutput)
        self.attributes['density'] = TextureFloatAttribute(
            'density', self.addToOutput, self.prependToOutput)
        self.attributes['spottyness'] = TextureFloatAttribute(
            'spottyness', self.addToOutput, self.prependToOutput)
        self.attributes['sizeRand'] = TextureFloatAttribute(
            'sizeRand', self.addToOutput, self.prependToOutput)
        self.attributes['randomness'] = TextureFloatAttribute(
            'randomness', self.addToOutput, self.prependToOutput)

        self.attributes['noiseType'] = TextureEnumAttribute(
            'noiseType',
            self.addToOutput,
            self.prependToOutput,
            asString=False,
            nameValues=self.aNoiseTypes)
        self.attributes['falloff'] = TextureEnumAttribute(
            'falloff',
            self.addToOutput,
            self.prependToOutput,
            asString=False,
            nameValues=self.aFalloffTypes)
Ejemplo n.º 11
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['alphaGain'] = TextureFloatAttribute(
            'alphaGain', self.addToOutput, self.prependToOutput)
        self.attributes['alphaOffset'] = TextureFloatAttribute(
            'alphaOffset', self.addToOutput, self.prependToOutput)
        self.attributes['alphaIsLuminance'] = TextureBoolAttribute(
            'alphaIsLuminance', self.addToOutput, self.prependToOutput)

        self.attributes['numberOfWaves'] = TextureIntegerAttribute(
            'numberOfWaves', self.addToOutput, self.prependToOutput)
        self.attributes['fast'] = TextureBoolAttribute('fast',
                                                       self.addToOutput,
                                                       self.prependToOutput)
        self.attributes['reflectionBox'] = TextureBoolAttribute(
            'reflectionBox', self.addToOutput, self.prependToOutput)

        self.attributes['waveTime'] = TextureFloatAttribute(
            'waveTime', self.addToOutput, self.prependToOutput)
        self.attributes['waveVelocity'] = TextureFloatAttribute(
            'waveVelocity', self.addToOutput, self.prependToOutput)
        self.attributes['waveAmplitude'] = TextureFloatAttribute(
            'waveAmplitude', self.addToOutput, self.prependToOutput)
        self.attributes['waveFrequency'] = TextureFloatAttribute(
            'waveFrequency', self.addToOutput, self.prependToOutput)
        self.attributes['subWaveFrequency'] = TextureFloatAttribute(
            'subWaveFrequency', self.addToOutput, self.prependToOutput)
        self.attributes['smoothness'] = TextureFloatAttribute(
            'smoothness', self.addToOutput, self.prependToOutput)
        self.attributes['windU'] = TextureFloatAttribute(
            'windU', self.addToOutput, self.prependToOutput)
        self.attributes['windV'] = TextureFloatAttribute(
            'windV', self.addToOutput, self.prependToOutput)
        self.attributes['rippleTime'] = TextureFloatAttribute(
            'rippleTime', self.addToOutput, self.prependToOutput)
        self.attributes['rippleFrequency'] = TextureFloatAttribute(
            'rippleFrequency', self.addToOutput, self.prependToOutput)
        self.attributes['rippleAmplitude'] = TextureFloatAttribute(
            'rippleAmplitude', self.addToOutput, self.prependToOutput)
        self.attributes['dropSize'] = TextureFloatAttribute(
            'dropSize', self.addToOutput, self.prependToOutput)
        self.attributes['rippleOriginU'] = TextureFloatAttribute(
            'rippleOriginU', self.addToOutput, self.prependToOutput)
        self.attributes['rippleOriginV'] = TextureFloatAttribute(
            'rippleOriginV', self.addToOutput, self.prependToOutput)
        self.attributes['groupVelocity'] = TextureFloatAttribute(
            'groupVelocity', self.addToOutput, self.prependToOutput)
        self.attributes['phaseVelocity'] = TextureFloatAttribute(
            'phaseVelocity', self.addToOutput, self.prependToOutput)
        self.attributes['spreadStart'] = TextureFloatAttribute(
            'spreadStart', self.addToOutput, self.prependToOutput)
        self.attributes['spreadRate'] = TextureFloatAttribute(
            'spreadRate', self.addToOutput, self.prependToOutput)
        self.attributes['boxMinU'] = TextureFloatAttribute(
            'boxMinU', self.addToOutput, self.prependToOutput)
        self.attributes['boxMinV'] = TextureFloatAttribute(
            'boxMinV', self.addToOutput, self.prependToOutput)
        self.attributes['boxMaxU'] = TextureFloatAttribute(
            'boxMaxU', self.addToOutput, self.prependToOutput)
        self.attributes['boxMaxV'] = TextureFloatAttribute(
            'boxMaxV', self.addToOutput, self.prependToOutput)