def __init__(self): OpenMayaMPx.MPxNode.__init__(self) # translation table for texture self.attributes = {} 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)
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)
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)
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)
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)