Updated print params to handles new color interpolation code.

This commit is contained in:
Josh Wilson 2005-06-16 21:01:57 +00:00
parent 9621c1cca9
commit 7d4dd492ae

View File

@ -352,28 +352,25 @@ class Particles(ParticleSystem):
segIdList = eval('['+cim.getSegmentIdList().replace(' ',', ')+']')
for sid in segIdList:
seg = cim.getSegment(sid)
if( seg.isEnabled() ):
t_b = seg.getTimeBegin()
t_e = seg.getTimeEnd()
fun = seg.getFunction()
type = fun.getType()
if type == 'ColorInterpolationFunctionConstant':
fun = cim.downcastFunctionToConstant(fun)
typ = type(fun).__name__
if typ == 'ColorInterpolationFunctionConstant':
c_a = fun.getColorA()
file.write(targ+'.renderer.getColorInterpolationManager().addConstant('+`t_b`+','+`t_e`+','+`c_a`+')\n')
elif type == 'ColorInterpolationFunctionLinear':
fun = cim.downcastFunctionToLinear(fun)
elif typ == 'ColorInterpolationFunctionLinear':
c_a = fun.getColorA()
c_b = fun.getColorB()
file.write(targ+'.renderer.getColorInterpolationManager().addLinear('+`t_b`+','+`t_e`+','+`c_a`+','+`c_b`+')\n')
elif type == 'ColorInterpolationFunctionStepwave':
fun = cim.downcastFunctionToStepwave(fun)
elif typ == 'ColorInterpolationFunctionStepwave':
c_a = fun.getColorA()
c_b = fun.getColorB()
w_a = fun.getWidthA()
w_b = fun.getWidthB()
file.write(targ+'.renderer.getColorInterpolationManager().addStepwave('+`t_b`+','+`t_e`+','+`c_a`+','+`c_b`+','+`w_a`+','+`w_b`+')\n')
elif type == 'ColorInterpolationFunctionSinusoid':
fun = cim.downcastFunctionToSinusoid(fun)
elif typ == 'ColorInterpolationFunctionSinusoid':
c_a = fun.getColorA()
c_b = fun.getColorB()
per = fun.getPeriod()
@ -444,28 +441,25 @@ class Particles(ParticleSystem):
segIdList = eval('['+cim.getSegmentIdList().replace(' ',', ')+']')
for sid in segIdList:
seg = cim.getSegment(sid)
if( seg.isEnabled() ):
t_b = seg.getTimeBegin()
t_e = seg.getTimeEnd()
fun = seg.getFunction()
type = fun.getType()
if type == 'ColorInterpolationFunctionConstant':
fun = cim.downcastFunctionToConstant(fun)
typ = type(fun).__name__
if typ == 'ColorInterpolationFunctionConstant':
c_a = fun.getColorA()
file.write(targ+'.renderer.getColorInterpolationManager().addConstant('+`t_b`+','+`t_e`+','+`c_a`+')\n')
elif type == 'ColorInterpolationFunctionLinear':
fun = cim.downcastFunctionToLinear(fun)
elif typ == 'ColorInterpolationFunctionLinear':
c_a = fun.getColorA()
c_b = fun.getColorB()
file.write(targ+'.renderer.getColorInterpolationManager().addLinear('+`t_b`+','+`t_e`+','+`c_a`+','+`c_b`+')\n')
elif type == 'ColorInterpolationFunctionStepwave':
fun = cim.downcastFunctionToStepwave(fun)
elif typ == 'ColorInterpolationFunctionStepwave':
c_a = fun.getColorA()
c_b = fun.getColorB()
w_a = fun.getWidthA()
w_b = fun.getWidthB()
file.write(targ+'.renderer.getColorInterpolationManager().addStepwave('+`t_b`+','+`t_e`+','+`c_a`+','+`c_b`+','+`w_a`+','+`w_b`+')\n')
elif type == 'ColorInterpolationFunctionSinusoid':
fun = cim.downcastFunctionToSinusoid(fun)
elif typ == 'ColorInterpolationFunctionSinusoid':
c_a = fun.getColorA()
c_b = fun.getColorB()
per = fun.getPeriod()