you have to get the SubParamDefs
On 11/02/2013 11:15 AM, Christian Keller wrote:
Speaking of ShaderDefs:
Does someone know how to change the default value of a color parameter
in a ShaderDef in python?
Cheers,
Chris
--
christian keller
visual effects|direction
+49 179 69 36 248
[email protected]
http://vimeo.com/channels/96149
Am 11. Februar 2013 um 04:47 schrieb Stephan Woermann
<[email protected]>:
Maybe this helps...
oInputParameterDefs.AddParamDef( "layer_0", siHWShaderPortType,
oOptions );
2013/2/7 Matt Lind <[email protected]
<mailto:[email protected]>>
I have several shaders with parameters defined using .spdl
files. I am trying to update them to use Shader Definitions, but
a few of the parameter types are not documented in the manuals
which leaves me scratching my head a bit.
From the .spdl:
Parameter "layer 0" input
{
GUID = "{3C30FA8E-06A5-4ED1-93D3-DA165801B60C}";
type = rtrendercontext;
texturable = on;
animatable = off;
}
It’s an input parameter for a realtime shader which only accepts
other realtime shaders. The problem is the SDK manuals do not
specify the equivalent of ‘rtrendercontext’ parameter types using
shader definitions. Here is my best guess how to define such a
parameter:
// layer 0
oOptions = oXSIFactory.CreateShaderParamDefOptions();
oOptions.SetLongName( "layer_0" );
oOptions.SetAnimatable( false );
oOptions.SetTexturable( true );
oOptions.SetInspectable( true );
oInputParameterDefs.AddParamDef( "layer_0",
XSI::siShaderDataTypeStructure, oOptions );
Anybody have ideas?
Matt