Multiple segment editor plugin
-
Hi, I'm curious if we have a plug in where the user can select multiple arc or circles and specify its segments at once?
The native sketchup only allows one edit per selection via entity info (segments). The problem with this is the time factor, say if there's 20 circles or arcs- it would be better (IMHO) if the user can select them all and then specify the segments he wanted instead of selecting and editing one by one.
Thanks! -
I am sure you are familiar with Fredo6's Bezier Spline suite. You did not mention if you were using it. If you right click on a selection and get Polyline Segmentor, or Polyline Divider, it may be simpler but not necessarily multi selection as you wish. Just thought I would mention, if it might help. There may be a creative way to use ThomThom's selection tool to accomplish this?
-
@mitcorb said:
I am sure you are familiar with Fredo6's Bezier Spline suite.
Thanks for the reply. Yes I have that one and it's very useful. However, like what you mentioned, it doesn't have the option that I'm currently looking for. Thanks again for the suggestion.
-
Hi, onzki:
I still think that this idea is very useful, and not so esoteric or specialized. The tool would still have to look at each separate entity one by one and perform the desired operation similar to an operation that simplifies a mesh- a polyreducer- or polymultiplier as the case may be.
The difference is that the tool may be able to do it more quickly, since it is repetitive. A problem may arise if the entity is connected to other geometry. Just some thoughts. I am sure there may be reasons why not. -
If I good understand that mean that each segment is resized ?
So it's also separated object
So make all separated group with Loose Geometry by Chris Fullmer
Group to Component by Thomthom
Then Axes tool by Thomthom for have Center of selection Box for each component
rest to find the plug for a "relative resizing"
Seems Chris Fullmer has that
Scale and Rotate Multiple
Et voilΓIf it's for change the number of segments it's another story!
-
Maybe http://sketchucation.com/resources/pluginstore?pln=TIG_equalsegs to draw them like that initially OR my http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments to fix them later ? It has a Ruby Console tool
TIG.changearcsegments 64
using the new API method and a Plugins menu item in the newest version... -
About the number of segments
Curiously only Ruby console works and only for the Arcs!
Circles are ignored!
Menu makes nothing!
(tested on V7 free) -
Works fine for me in both v8 & v2013.
From menu OR Console for both Arcs & Circles
Any Ruby Console errors?It should change Arcs & Circles - BUT of course connected geometry can prevent changes being made - just like with Entity Info's limitations.
Try it on lone a lone unconnected Circle and report back...
-
For one a several arcscircles selected : all works fine in the Ruby Console!
For one a several arcscircles selected nothing happen with the menu!
For one a several circles selected this error is happening with Ruby Console
Error: #<NoMethodError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65:in
set_segments=': undefined method
is_polygon?' for #Sketchup::ArcCurve:0x1104e140>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65For one a several circles selected nothing happen with the menu!
All this is very curious because seems in the old past all worked fine
Maybe the new API ?(Tested with Su 7 free)
-
.is_polygon?
was introduced in v8 ?
This checks if a looped curve is a polygon OR a circle...I had made an API addition that was dropped when it became part of the new API...
So if you are trying to work on circles, then sadly it's >=v8 use only then...
UNLESS you also include this attached rb file in your <v8 Plugins folder!!![mod=:1cut554m]Removed the attachment - better version in next few posts...
TIG[/mod:1cut554m] -
with the new file test added
Must have the 2 rb files ArcCurve-set_segments=.rb and ArcCurveTests.rb installed ?
(it that I made)2 circles and an arc-circle selected
Menu : Nothing happenand with the ruby console
nothing change and this error message
TIG.changearcsegments 64
Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61for only an arc-circle selected
Menu : Nothing happen
same error message on the ruby console
TIG.changearcsegments 64
Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61 -
OK, another issue is .is_loop? is causing problems.
I've bodge up a new version - test it and report back...
It should now be compatible with this tool, other tools and v7 & other versions
-
You were very efficicient!
All is perfect! Menu or / and console
Works even you choose other things inside the selection!
(tested on SU 7 free)Bravo!
-
I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...
-
@tig said:
I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...
Thanks a lot for looking at this post and sharing your time generously for another good plugin, what's the specific plug in name again? Thanks, cheers!
-
-
@tig said:
http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments
I tried it.. wow, this is amazing. I can set it endlessly, from high to low and vice versa Thanks a lot!
Advertisement