Becouse it partly fits on this Topic:

Does anyone know how to set the Viewport-Mapping in a Python-ShaderDefinition?

In a SPDL-File you can set a it via
ui "mapping"

Is there a similar function for Python?



Am 26.07.2013 18:08, schrieb Vladimir Jankijevic:
like this: paramOptions.SetDefaultValue( [0.5, 0.3, 0.2] )


On Fri, Jul 26, 2013 at 6:05 PM, Stefano Jannuzzo <stefano.jannu...@gmail.com <mailto:stefano.jannu...@gmail.com>> wrote:

    Hi folks.
    In a shaderdef define function, I can create a color param and set
    its default value to a mid gray by

    paramOptions = XSIFactory.CreateShaderParamDefOptions();
    paramOptions.SetDefaultValue(0.5);
    params.AddParamDef("color", siShaderDataTypeColor3, paramOptions);

    Any idea how to set each channel independently?
    Thanks. Stefano



Reply via email to