コード例 #1
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

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

        self.attributes['inclination'] = TextureFloatAttribute(
            'inclination', self.addToOutput, self.prependToOutput)
        self.attributes['elevation'] = TextureFloatAttribute(
            'elevation', self.addToOutput, self.prependToOutput)

        self.attributes['skyRadius'] = TextureFloatAttribute(
            'skyRadius', self.addToOutput, self.prependToOutput)
        self.attributes['bottom'] = TextureFloatAttribute(
            'bottom', self.addToOutput, self.prependToOutput)
        self.attributes['top'] = TextureFloatAttribute('top', self.addToOutput,
                                                       self.prependToOutput)
        self.attributes['left'] = TextureFloatAttribute(
            'left', self.addToOutput, self.prependToOutput)
        self.attributes['right'] = TextureFloatAttribute(
            'right', self.addToOutput, self.prependToOutput)
        self.attributes['front'] = TextureFloatAttribute(
            'front', self.addToOutput, self.prependToOutput)
        self.attributes['back'] = TextureFloatAttribute(
            'back', self.addToOutput, self.prependToOutput)
コード例 #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['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)
コード例 #3
0
ファイル: CheckerTexture.py プロジェクト: ca1773130n/Gorilla
    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)
コード例 #4
0
ファイル: ClothTexture.py プロジェクト: ca1773130n/Gorilla
    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)
コード例 #5
0
ファイル: GraniteTexture.py プロジェクト: ca1773130n/Gorilla
    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['color1'] = TextureColorAttribute(
            'color1', self.addToOutput, self.prependToOutput)
        self.attributes['color2'] = TextureColorAttribute(
            'color2', self.addToOutput, self.prependToOutput)
        self.attributes['color3'] = TextureColorAttribute(
            'color3', self.addToOutput, self.prependToOutput)
        self.attributes['fillerColor'] = TextureColorAttribute(
            'fillerColor', self.addToOutput, self.prependToOutput)

        self.attributes['cellSize'] = TextureFloatAttribute(
            'cellSize', self.addToOutput, self.prependToOutput)
        self.attributes['density'] = TextureFloatAttribute(
            'density', self.addToOutput, self.prependToOutput)
        self.attributes['mixRatio'] = TextureFloatAttribute(
            'mixRatio', 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)
コード例 #6
0
ファイル: MountainTexture.py プロジェクト: ca1773130n/Gorilla
    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)
コード例 #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['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)
コード例 #8
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)