예제 #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['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)
예제 #3
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}

        self.attributes['bumpValue'] = TextureFloatAttribute(
            'bumpValue', self.addToOutput, self.prependToOutput)
        self.attributes['bumpDepth'] = TextureFloatAttribute(
            'bumpDepth', self.addToOutput, self.prependToOutput)
예제 #4
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)
예제 #5
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['valueX'] = TextureFloatAttribute(
            'valueX', self.addToOutput, self.prependToOutput)
        self.attributes['valueY'] = TextureFloatAttribute(
            'valueY', self.addToOutput, self.prependToOutput)
        self.attributes['valueZ'] = TextureFloatAttribute(
            'valueZ', self.addToOutput, self.prependToOutput)

        self.attributes['contrastX'] = TextureFloatAttribute(
            'contrastX', self.addToOutput, self.prependToOutput)
        self.attributes['contrastY'] = TextureFloatAttribute(
            'contrastY', self.addToOutput, self.prependToOutput)
        self.attributes['contrastZ'] = TextureFloatAttribute(
            'contrastZ', self.addToOutput, self.prependToOutput)

        self.attributes['biasX'] = TextureFloatAttribute(
            'biasX', self.addToOutput, self.prependToOutput)
        self.attributes['biasY'] = TextureFloatAttribute(
            'biasY', self.addToOutput, self.prependToOutput)
        self.attributes['biasZ'] = TextureFloatAttribute(
            'biasZ', self.addToOutput, self.prependToOutput)
예제 #6
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)
예제 #7
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

        # translation table for texture
        self.attributes = {}
        self.attributes['octaves']   = TextureIntegerAttribute('octaves',  self.addToOutput, self.prependToOutput)
        self.attributes['roughness']   = TextureFloatAttribute('roughness',  self.addToOutput, self.prependToOutput)
        self.attributes['scale']   = TextureFloatAttribute('scale',  self.addToOutput, self.prependToOutput)
        self.attributes['variation']   = TextureFloatAttribute('variation',  self.addToOutput, self.prependToOutput)
        
        self.attributes['translate'] = TextureVectorAttribute('translate', self.addToOutput, self.prependToOutput)
        self.attributes['rotate'] = TextureVectorAttribute('rotate', self.addToOutput, self.prependToOutput)
예제 #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)
예제 #9
0
    def __init__(self):

        self.attributes = {}
        self.attributes['tex1'] = TextureFloatAttribute(
            'bumpValue', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureFloatAttribute(
            'bumpDepth', self.addToOutput, self.prependToOutput)


#    def getTexture(self, plugName, shaderNode, shaderName, attrType ):
#        bumpPlug = shaderNode.findPlug('bumpValue')
#        dgIt = OpenMaya.MItDependencyGraph( bumpPlug,
#                                            OpenMaya.MFn.kFileTexture,
#                                            OpenMaya.MItDependencyGraph.kUpstream,
#                                            OpenMaya.MItDependencyGraph.kBreadthFirst,
#                                            OpenMaya.MItDependencyGraph.kNodeLevel
#                                            )
#
#        dgIt.disablePruningOnFilter()
#
#        if not dgIt.isDone():
#            hasBumpMap = True
#
#            textureNode = dgIt.thisNode()
#            fnTextureNode = OpenMaya.MFnDependencyNode(textureNode)
#            filenamePlug = fnTextureNode.findPlug('fileTextureName')
#            bumpImage = filenamePlug.asString()
#
#            colorgainPlug = shaderNode.findPlug( 'bumpDepth' )
#            #colorgainPlug = fnTextureNode.findPlug('colorGainR')
#            bumpScale = colorgainPlug.asFloat()
#
#            self.addToOutput( 'Texture "' + shaderName + '.normalCamera.scale"' )
#            self.addToOutput( '\t"float" "constant"' )
#            self.addToOutput( ( '\t\t"float value" [%f]' % bumpScale ) )
#
#            self.addToOutput( 'Texture "' + shaderName + '.normalCamera.image"' )
#            self.addToOutput( '\t"float" "imagemap"' )
#            self.addToOutput( '\t\t"float vscale" [-1.0]' )
#            self.addToOutput( ( '\t\t"string filename" ["%s"]' % FileCollector.collectBumpmap( bumpImage ) ) )
#
#            self.addToOutput( 'Texture "' + shaderName + '.normalCamera"' )
#            self.addToOutput( '\t"float" "scale"' )
#            self.addToOutput( ( '\t\t"texture tex1" ["%s.normalCamera.scale"]' % shaderName ) )
#            self.addToOutput( ( '\t\t"texture tex2" ["%s.normalCamera.image"]' % shaderName ) )
#
#        return self.outputString
예제 #10
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['amount'] = TextureFloatAttribute(
            'amount', self.addToOutput, self.prependToOutput)
예제 #11
0
    def __init__(self):
        OpenMayaMPx.MPxNode.__init__(self)

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

        self.attributes['blender'] = TextureFloatAttribute(
            'blender', self.addToOutput, self.prependToOutput)
예제 #12
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)
예제 #13
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['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)
예제 #14
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'] = TextureFloatAttribute(
            'tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2'] = TextureFloatAttribute(
            'tex2', self.addToOutput, self.prependToOutput)
예제 #15
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)
예제 #16
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)
예제 #17
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['amplitude'] = TextureFloatAttribute(
            'amplitude', self.addToOutput, self.prependToOutput)
        self.attributes['threshold'] = TextureFloatAttribute(
            'threshold', self.addToOutput, self.prependToOutput)
        self.attributes['ratio'] = TextureFloatAttribute(
            'ratio', self.addToOutput, self.prependToOutput)
        self.attributes['frequencyRatio'] = TextureFloatAttribute(
            'frequencyRatio', self.addToOutput, self.prependToOutput)
        self.attributes['levelMin'] = TextureFloatAttribute(
            'levelMin', self.addToOutput, self.prependToOutput)
        self.attributes['levelMax'] = TextureFloatAttribute(
            'levelMax', self.addToOutput, self.prependToOutput)
        self.attributes['bias'] = TextureFloatAttribute(
            'bias', self.addToOutput, self.prependToOutput)
        self.attributes['time'] = TextureFloatAttribute(
            'time', self.addToOutput, self.prependToOutput)
        self.attributes['timeRatio'] = TextureFloatAttribute(
            'timeRatiotimeRatio', self.addToOutput, self.prependToOutput)
예제 #18
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']   = TextureFloatAttribute('tex1', self.addToOutput, self.prependToOutput)
        self.attributes['tex2']   = TextureFloatAttribute('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)