GearGen VB script (and others)

I tried that, but it didn’t work for me. Still getting the Spirograph after using ModifyRadius on a Box-edited circle. In object properties, it is still a “Nurbs circle” even after the modifyradius operation.

I also tried Scale2D on a pristine real circle (Object properties: Circle), but that too led GearGen astray – the object had been transformed into a “Nurbs circle”, same as what happens with BoxEdit.

But what Mitch says is true about SimplifyCrv – that command changes a “Nurbs circle” back into a “circle”, and GearGen works again on that object. I think he’s put his finger on the solution here. If you build that into your script, it looks like it will solve the problem.

Can you try it now ? @Ian
gearGen.rvb (23.2 KB)

Thomas, I just tried it out, did all the bad things to it, and it works!

So, you’ve solved the “Nurbs circle” problem. Was that by a kind of “if Nurbs Curve then SimplifyCrv” instruction?

Nice. Thanks.

No, I computed the local cplane by giving it three specific points instead of relying on curvePlane to do it for me. This removed all doubt.

4 Likes