[plugin] Divide By Material
-
First select geometry (not groups) with different materials applied.
Run plugin and chose the material which you want to subdivide and the maximum size of subdivision...and
It works for me...
but only for geometry not in groups or components .
Guess the next step is to make it work for all nested geometry -
srx, Glad that the plugin works for you. The plugin posted to this forum doesn't require you to pre-select the faces. If there are no selected faces, it looks at all faces in the model and sub-divides the ones with the given material.
As far as groups and components go, you can sub-divide their faces if you enter edit mode before running the plugin. This selects the faces and makes them accessable.
-
Works on my PC at home (Win 7 SU8 Pro) but doesn't work at my office (WinXP SU8 Pro).
Would it be possible to have the localized material names instead of english names ? -
@unknownuser said:
As far as groups and components go, you can sub-divide their faces if you enter edit mode before running the plugin.
This means that I have to enter every group - component in model manual?
Is it a problem to make it work for all nested geometry in model? This would be even more useful -
srx, Your wish is granted. DivideByMaterial.rb now handels faces in groups and components.
-
Nice work Sam. Thanks for the update. Perhaps update the first post as well.
-
Thank you Sam. Very kind of you.
I agree you should update the first post. -
nice!
Thank you Sam ![img][url][/url][/img] -
"undefined method `file_loaded?' for main:Object"
-
@daryan said:
"undefined method `file_loaded?' for main:Object"
Very probably it's an install error but since we don't know anything whatsoever about your SketchUp version, operating system, nor how you went about installing the plugin, there's not much help to be given. Please complete your profile and help us help you.
-
Sorry, your right. Because im very bad in english i usualy say the less possible.
Windows 8.1
Sketchup 8 proinstall the plugin : just copy past the file "DivideByMaterial.rb" in C:\Program Files (x86)\Google\Google SketchUp 8\Plugins
-
The file is missing a line at its start:
require("sketchup.rb")
This is not needed IF an earlier loaded script has already required/loadedsketchup.rb
...
But I suspect you do not have that happening...
Rather than edit the main file... Add this new file to your Plugins folder...!.rb
On a restart of SketchUp any scripts missing the 'require("sketchup.rb")
' should be OK because the!.rb
files loads very early and will have done that for them... -
Thanks a lot TIG !
Advertisement