[Plugin] Remove group materials, leave geometry material
-
thanks so much, Matthieu!
only one minor thing still: while all the materials are applied to faces and the material of the outer group is changed to default, nested groups still keep their assigned material. that is not very important, because the face's textures are the dominant ones. but to be perfectly accurate, it would be great if the plugin could assign the default material to nested groups too.
one positive side effect I experienced is, that your plugin coloures front and back faces. that is really good!
-
Hi plot-paris !
ok, that's been updated !
Thank you for testing ! -
damn, you are fast! now the plugin is flawless. fantastic! thank you so much!!!
-
Hi!
Matt, you are already a legend in ASGvis forum!
Thank you man!
-
LOL, you guys are a two-man developer and beta team!
Great work, I'll link this thread over at ASGvis.
-
@jackson said:
Matthieu,
You are the man! If you can produce a ruby script which removes group materials and applies them to the default geometry you will save me about 3 day's work on this model alone! I'm trying to update my portfolio so this would be of enormous benefit to me as I've got lots to do and very little time to do it.
somewhat off topic, but: where did you get hold of the ground texture?
-
Could someone explain exactly what this script does, and what are the benefits? It would help the technically challenged, like myself.
Kind regards,
Bob -
It makes sure that no materials are applied to groups and components. It will either remove the materials of groups and components or transfer them to the geometry.
For users of V-Ray for SketchUp it has the benefit of faster parsing time and more reliable outcome as VfSU struggles to get correct data for groups and components with materials applied to them. -
Thank you Thomas.
Regards,
Bob -
Matt666
i havent tried your plugin just like to thank you for giving this solution
i already stop using the latest vray bec. of some issues but if this plugin will work wow thank you so much
-
Matt; You could benefit from using the extra speedboost argument for the start_operation method which was introduced in SU7.
-
Yep! First code post updated! Thank you Thomthom...
-
Hi Matt,
Is this version only for v7 or does it run under v6 too ? -
Hi Didier!
This update works with both versions.if Sketchup.version[0,1].to_i >= 7 model.start_operation("Remove comp & group materials",true) else model.start_operation("Remove comp & group materials") end
Thank you for the remark
-
Merci,
C'Γ©tait pour savoir comment l'indexer sur mon site. -
I have a suggestion for an improvement. An option to make components painted with different materials into unique components.
-
Hi thomthom!
Sorry for the delay! Great idea! O've updated the code.
I've tested it veeery quickly....
The plugin post is up-to-date. -
Thank you Jackson
-
Amazing work Matthieu!
-
Sorry Matthieu, I just ran a test and this isn't working, or at least it's not working at all as I would like. It doesn't create distinct components according to colour as ThomThom suggested- after running it on 3 identical car components which I'd painted different colours it just turned them all blue and they are still intances of the same component. I don't understand the logic behind the new colour choice for default either (personally I don't like ruby scripts to use their own material libraries, as I keep very strict control over my materials libraries, but that's another story). Surely this feature overrides the whole point of the original script i.e. that it replaces the default material applied to geometry within groups and components with the material which has been applied to the groups or component. Now all the geometry with default material applied turns a new global colour, which make the script useless for V-Ray users.
Sorry for the criticism, hopefully you understand it is intended strictly constructively! I am still your number one fan!
Advertisement