@@ -2632,6 +2632,12 @@ def testShaders( self ) :
26322632 dest .parameters ["a" ] = IECore .Color3fData ( imath .Color3f ( 0.0 ) )
26332633 dest .parameters ["b" ] = IECore .Color3fData ( imath .Color3f ( 0.0 ) )
26342634 dest .parameters ["c" ] = IECore .FloatData ( 0.0 )
2635+ dest .parameters ["sf" ] = IECore .SplineffData ( IECore .Splineff ( IECore .CubicBasisf .catmullRom (),
2636+ ( ( 0 , 1 ), ( 10 , 2 ), ( 20 , 0 ), ( 30 , 1 ) )
2637+ ) )
2638+ dest .parameters ["sc" ] = IECore .SplinefColor3fData ( IECore .SplinefColor3f ( IECore .CubicBasisf .linear (),
2639+ ( ( 0 , imath .Color3f (1 ) ), ( 10 , imath .Color3f (2 ) ), ( 20 , imath .Color3f (0 ) ) )
2640+ ) )
26352641
26362642 componentConnectionNetwork = IECoreScene .ShaderNetwork ()
26372643 componentConnectionNetwork .addShader ( "source1" , add1 )
@@ -2664,6 +2670,24 @@ def testShaders( self ) :
26642670 ) )
26652671 componentConnectionNetwork .setOutput ( IECoreScene .ShaderNetwork .Parameter ( "dest" , "" ) )
26662672
2673+ # Float to spline element connection
2674+ componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
2675+ IECoreScene .ShaderNetwork .Parameter ( "source1" , "out" ),
2676+ IECoreScene .ShaderNetwork .Parameter ( "dest" , "sf[3].y" )
2677+ ) )
2678+
2679+ # Color to spline element connection
2680+ componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
2681+ IECoreScene .ShaderNetwork .Parameter ( "source3" , "out" ),
2682+ IECoreScene .ShaderNetwork .Parameter ( "dest" , "sc[2].y" )
2683+ ) )
2684+
2685+ # Float to spline element component connection
2686+ componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
2687+ IECoreScene .ShaderNetwork .Parameter ( "source1" , "out" ),
2688+ IECoreScene .ShaderNetwork .Parameter ( "dest" , "sc[0].y.g" )
2689+ ) )
2690+
26672691 # If we manually create the shaders that are used as adapters for component connections,
26682692 # they should not be automatically removed on import. ( This is implemented using
26692693 # a label for automatically created adapters, stored as blindData in Cortex that is
0 commit comments