Show messages:
1-12
13-32
33-42
From: Frenchy Pilou (PILOU)
Somptuous!
From: Martin (MARTIN3D)
Max, thats it, thats exactly what I need. Especially the skip straight lines option is a huge timesaver. Great work! Thanks for sharing.
From: MajorGrubert (CARLOSFERREIRAPINTO)
Hi Max,
Thanks for the script. It will be a time saver for me.
Any chance of the new points made a new curve, above the reference curve and with an option (tick box) of deleting the reference curve?
Or placing the new points on the same curve and deleting the old ones.
Don't now if its possible, easy to do, or usefull for anybody else but me. Have a similar script on Illustrator.
The option 'skip straight lines' is fantastic.
Carlos
From: Frenchy Pilou (PILOU)
try this who connect some selected Points ;)
http://moi3d.com/forum/messages.php?webtag=MOI&msg=2749.56
From: BurrMan
"""""""""Any chance of the new points made a new curve, above the reference curve and with an option (tick box) of deleting the reference curve?""""""""
I've fooled a bit with this to help with reverse engineering some things. I can test various tolerance inputs with this.
So if the script is not made more robust with these types of requests, here's an option for what you want.
You can use the script to generate the points you want, then use "SavePointFile" on those points. You can then "ImportPointFile" and choose the option to create a throughpoints curve from the import.
Anyway...... Thanks again to Max for sharing his scripting work.
From: MajorGrubert (CARLOSFERREIRAPINTO)
Hi BurrMan,
Make some attempts with your sugestions but couldn't get it to work. Will keep trying.
Anyway, thanks for your help.
Carlos
From: BurrMan
Hey Carlos,
Not sure whats happening for you. It could be the point structure is not good for a "full through points" import?
Here's a video of a workflow:
Notice I have to break out anywhere where the points are the "straight lines". The through points tool wont know how to do that.
So anyway, maybe this helps. You can always revisit with questions of you need.
From: MajorGrubert (CARLOSFERREIRAPINTO)
Hi BurrMan,
Its working now, before i was saving as .3dm file and not as a .txt (never heard about this scripts before you mention).
Thanks for help and taking the time to make the video. Fantastic.
This is an amazing community!
Cheers
Carlos
From: Martin (MARTIN3D)
Hi Michael,
quote:
I've added in something for the next beta so that the start and end of curve _segments_ can also be retrieved. Right now they can only be gotten for the full curve, not for individual segments. Once this is in place then you would be able to get the segments by doing var segs = crv.getSubObjects(); , then each segment will respond to getStartPt() and getEndPt() in the next beta.
I tested that with todays beta, two selected polylines and the code below. It works fine. Thanks a lot for adding this!
code:
script:
var curves = moi.geometryDatabase.getSelectedObjects().getCurves();
for ( var i = 0; i < curves.length; i++ ) {
var segments = curves.item(i).getSubObjects();
for ( var j = 0; j < segments.length; j++ ) {
var segment = segments.item(j);
moi.ui.alert( "Curve " + i + "\n" +
"Segment " + j + " start: " + segment.getStartPt().x + ", " + segment.getStartPt().y + "\n" +
"Segment " + j + " end: " + segment.getEndPt().x + ", " + segment.getEndPt().y );
}
}
From: Michael Gibson
You're welcome Martin, I'm glad that worked!
Also another new thing related to polyline handling in the new beta - for the Rebuild command there's a new "Endpoints" mode which builds a new smooth curve that goes through the endpoints of the current curve's segments rather than sampling points at percentages along the curve's length. This can be useful for building a smooth curve through imported polylines like you sometimes get with PDF or DXF imports. It's basically the same as doing a "Through points" curve snapping each point onto polyline segment endpoints, but doing it all in one go.
- Michael
Show messages:
1-12
13-32
33-42