New NURBS tools
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
This is the best result I've ever gotten with these tools. I think the key was the new polygon conversion technique. So yeah, time to clean up the code and do the final pass.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
Had one more minor bug fix and added a freeze polygons option. Default is on but when it's off it will import filled shapes as filled curves instead of converting them to normal polygon meshes. Option was off for the butterfly and the import time was much faster because hundreds of curves were not put through the freeze process. Freezing gives a cleaner result, but no freezing is much faster.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
New Protection Test script to modify buttons for guard instead of deselectnurbs
fixes issues with some custom script buttons like truebevel
checkbox will write a log file to c:\temp\nurbsButtons4.txt without modifying the toolbar buttons
unchecked no file is written
fixes issues with some custom script buttons like truebevel
checkbox will write a log file to c:\temp\nurbsButtons4.txt without modifying the toolbar buttons
unchecked no file is written
- Attachments
-
- New Protection Test.RsObj
- (44.15 KiB) Downloaded 116 times
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
It's done! ... I hope.
One more thing to test is to import an svg file and export an animation. If no problems are found then it is really done.
Attached are the scripts for unofficial update testing.
Edit: Temporary removed attachment, found one more place that has not been checked/cleaned yet.
Forgot to check the utilities section. Fixed one issue with test code and found that swap uv, and reverse u and v need conversion to "1 undo" style code.
Edit: re-uploaded
One more thing to test is to import an svg file and export an animation. If no problems are found then it is really done.
Attached are the scripts for unofficial update testing.
Edit: Temporary removed attachment, found one more place that has not been checked/cleaned yet.
Forgot to check the utilities section. Fixed one issue with test code and found that swap uv, and reverse u and v need conversion to "1 undo" style code.
Edit: re-uploaded
- Attachments
-
- NURBSScripts.RsObj
- (2.65 MiB) Downloaded 121 times
Last edited by clintonman on 05 Aug 2021, 05:15, edited 3 times in total.
Re: New NURBS tools
Would it be okay to make the Rebuild NURBS Name work the same way as the NURBS Info?
When a NURBS is selected and you open Rebuild NURBS panel, the Name will be entered into the field
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
It already does that, so maybe I don't understand what you mean?
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
Fixed bug. The protect nurbs set button was still pointing to the old guard script location, thanks tB.
***
curve animation export was completely broken, fixed now
***
curve animation export was completely broken, fixed now
Last edited by clintonman on 06 Aug 2021, 20:48, edited 1 time in total.
Re: New NURBS tools
I am not able to select a Curve that has been frozen on one side when Freeze Curve As Polygon is checked
If I disable Freeze Curve As Polygon and Freeze a Curve, I am able to select both sides
If I disable Freeze Curve As Polygon and Freeze a Curve, I am able to select both sides
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: New NURBS tools
That's because the frozen curve only has 1 face and the unfrozen curve has 2 faces.
As an example:
create an ordinary plane, not double sided
go to object render attributes and make the edges visible so you can see the back
rotate the view to the back of the plane
select something else
if you try to select the plane, you can't
Re: New NURBS tools
Maybe I am missing the understanding of what Freeze Curve As Polygon meansclintonman wrote: ↑06 Aug 2021, 15:26That's because the frozen curve only has 1 face and the unfrozen curve has 2 faces.
As an example:
create an ordinary plane, not double sided
go to object render attributes and make the edges visible so you can see the back
rotate the view to the back of the plane
select something else
if you try to select the plane, you can't
It seems to me that the code (freezeCurve, 2 script) for Freeze Curve As Polygon is opposite of what it should be
If I remove the ! in LINE 45 cmd += 'if(FreezeAsPolygon) {';
And add the ! in LINE 51 cmd += 'if(!FreezeAsPolygon) {';