@@ -2917,12 +2917,13 @@ def testShaders( self ) :
29172917 surface .parameters ["c" ] = IECore .StringData ( "42" )
29182918 surface .parameters ["d" ] = IECore .Color3fData ( imath .Color3f ( 3 ) )
29192919 surface .parameters ["e" ] = IECore .V3fVectorData ( [ imath .V3f ( 7 ) ] )
2920- surface .parameters ["f" ] = IECore .SplineffData ( IECore .Splineff ( IECore .CubicBasisf .bSpline (),
2921- ( ( 0 , 1 ), ( 10 , 2 ), ( 20 , 0 ), ( 21 , 2 ) ) )
2922- )
2923- surface .parameters ["g" ] = IECore .SplinefColor3fData ( IECore .SplinefColor3f ( IECore .CubicBasisf .linear (),
2924- ( ( 0 , imath .Color3f (1 ) ), ( 10 , imath .Color3f (2 ) ), ( 20 , imath .Color3f (0 ) ) ) )
2925- )
2920+ surface .parameters ["f" ] = IECore .RampffData ( IECore .Rampff (
2921+ ( ( 0 , 1 ), ( 10 , 2 ), ( 20 , 0 ), ( 21 , 2 ) ), IECore .RampInterpolation .BSpline
2922+ ) )
2923+ surface .parameters ["g" ] = IECore .RampfColor3fData ( IECore .RampfColor3f (
2924+ ( ( 0 , imath .Color3f (1 ) ), ( 10 , imath .Color3f (2 ) ), ( 20 , imath .Color3f (0 ) ) ),
2925+ IECore .RampInterpolation .Linear
2926+ ) )
29262927
29272928 add1 = IECoreScene .Shader ( "add" , "ai:shader" )
29282929 add1 .parameters ["b" ] = IECore .FloatData ( 3.0 )
@@ -2978,11 +2979,13 @@ def testShaders( self ) :
29782979 dest .parameters ["a" ] = IECore .Color3fData ( imath .Color3f ( 0.0 ) )
29792980 dest .parameters ["b" ] = IECore .Color3fData ( imath .Color3f ( 0.0 ) )
29802981 dest .parameters ["c" ] = IECore .FloatData ( 0.0 )
2981- dest .parameters ["sf" ] = IECore .SplineffData ( IECore .Splineff ( IECore .CubicBasisf .catmullRom (),
2982- ( ( 0 , 1 ), ( 10 , 2 ), ( 20 , 0 ), ( 30 , 1 ) )
2982+ dest .parameters ["sf" ] = IECore .RampffData ( IECore .Rampff (
2983+ ( ( 0 , 1 ), ( 10 , 2 ), ( 20 , 0 ), ( 30 , 1 ) ),
2984+ IECore .RampInterpolation .CatmullRom
29832985 ) )
2984- dest .parameters ["sc" ] = IECore .SplinefColor3fData ( IECore .SplinefColor3f ( IECore .CubicBasisf .linear (),
2985- ( ( 0 , imath .Color3f (1 ) ), ( 10 , imath .Color3f (2 ) ), ( 20 , imath .Color3f (0 ) ) )
2986+ dest .parameters ["sc" ] = IECore .RampfColor3fData ( IECore .RampfColor3f (
2987+ ( ( 0 , imath .Color3f (1 ) ), ( 10 , imath .Color3f (2 ) ), ( 20 , imath .Color3f (0 ) ) ),
2988+ IECore .RampInterpolation .Linear
29862989 ) )
29872990
29882991 componentConnectionNetwork = IECoreScene .ShaderNetwork ()
@@ -3016,19 +3019,19 @@ def testShaders( self ) :
30163019 ) )
30173020 componentConnectionNetwork .setOutput ( IECoreScene .ShaderNetwork .Parameter ( "dest" , "" ) )
30183021
3019- # Float to spline element connection
3022+ # Float to ramp element connection
30203023 componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
30213024 IECoreScene .ShaderNetwork .Parameter ( "source1" , "out" ),
30223025 IECoreScene .ShaderNetwork .Parameter ( "dest" , "sf[3].y" )
30233026 ) )
30243027
3025- # Color to spline element connection
3028+ # Color to ramp element connection
30263029 componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
30273030 IECoreScene .ShaderNetwork .Parameter ( "source3" , "out" ),
30283031 IECoreScene .ShaderNetwork .Parameter ( "dest" , "sc[2].y" )
30293032 ) )
30303033
3031- # Float to spline element component connection
3034+ # Float to ramp element component connection
30323035 componentConnectionNetwork .addConnection ( IECoreScene .ShaderNetwork .Connection (
30333036 IECoreScene .ShaderNetwork .Parameter ( "source1" , "out" ),
30343037 IECoreScene .ShaderNetwork .Parameter ( "dest" , "sc[0].y.g" )
0 commit comments