Revision history  [back]

You could find your Curve by getting all the curves in the model and then finding the one named "Curve".

mycurves = model.getCurveBiquadratics
theCurve=[]
 mycurves .each do |mcurve|
 if mcurve.name.to_s == 'Curve'
     theCurve = mcurve
     break
 end
end

Then you can use the methods listed here to change the Curve. Alternatively, you could stay with the boost code you used and once you done with the first curve delete it using .remove and rename the new one to whatever you need.

You could find your Curve by getting all the curves in the model and then finding the one named "Curve".

mycurves = model.getCurveBiquadratics
theCurve=[]
 mycurves .each do |mcurve|
 if mcurve.name.to_s mcurve.name == 'Curve'
     theCurve = mcurve
     break
 end
end

Then you can use the methods listed here to change the Curve. Alternatively, you could stay with the boost code you used and once you done with the first curve delete it using .remove and rename the new one to whatever you need.

You could find your Curve by getting all the curves in the model and then finding the one named "Curve".

"Curve".
mycurves = model.getCurveBiquadratics
theCurve=[]
 mycurves .each do |mcurve|
 if mcurve.name == 'Curve'
     theCurve = mcurve
     break
 end
end

Then you can use the methods listed here to change the Curve. Alternatively, you could stay with the boost code you used and once you done with the first curve delete it using .remove and rename the new one to whatever you need.mcurve