[plugin] Divide By Material
17 posts
• Page 1 of 1
[plugin] Divide By MaterialThis plugin was created at the request of srx who, because of rendering requirements, needed to sub-divide faces with a given material. The plugin works with a selected subset or all faces in the model with the material selected from a list of all materials present in the model. The maximum size to the sub-division is also entered. The actual size is calculated based on the dimensions of the face. The faces are assumed to be rectangular. Faces inside groups and components are accessed and processed by the plugin.
Last edited by sdmitch on Mon Jun 06, 2011 4:01 pm, edited 2 times in total.
Re: [plugin] Divide By Material![]() Thank you Sam. I am glad for being part of this modest contribution to SC forum to which I own so much. www.saurus.rs
Re: [plugin] Divide By MaterialHi,
The script doesn't do anything here, no subdivision, no material paint ![]() Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F) Re: [plugin] Divide By MaterialFirst 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 ![]() www.saurus.rs
Re: [plugin] Divide By Materialsrx, 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.
Re: [plugin] Divide By MaterialWorks 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 ? Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F) Re: [plugin] Divide By Material
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 ![]() www.saurus.rs
Re: [plugin] Divide By Materialsrx, Your wish is granted. DivideByMaterial.rb now handels faces in groups and components.
Re: [plugin] Divide By MaterialNice work Sam.
![]() 3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup Content Creator at Skapeup
Re: [plugin] Divide By Material![]() ![]() Thank you Sam. Very kind of you. I agree you should update the first post. www.saurus.rs
Re: [plugin] Divide By Material
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. Etaoin Shrdlu
% (THERE'S NO PLACE LIKE) G28 X0.0 Y0.0 Z0.0 M30 %
Re: [plugin] Divide By MaterialSorry, your right. Because im very bad in english i usualy say the less possible.
Windows 8.1 Sketchup 8 pro install the plugin : just copy past the file "DivideByMaterial.rb" in C:\Program Files (x86)\Google\Google SketchUp 8\Plugins Re: [plugin] Divide By MaterialThe file is missing a line at its start:
require("sketchup.rb") This is not needed IF an earlier loaded script has already required/loaded sketchup.rb... But I suspect you do not have that happening... Rather than edit the main file... Add this new file to your Plugins folder... 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... TIG
17 posts
• Page 1 of 1
|
Who is online
Users browsing this forum: anhmapxnxx14 and 14 guests