Delete all textures from materials?
-
So, I have an issue with some imported models from ArchiCAD.
Solution would be to delete all textures from materials while keeping the actual material - for example brick material would still be named Brick but instead of texture, it would only be red color.
Is this possible in any way except unchecking textures one by one?
Thank you in advance. -
Copy/paste all of this code into the Ruby Console + enter
model=Sketchup.active_model model.start_operation('NoTex', true) model.materials.each{|m| m.texture=nil } model.commit_operation
It's one-step undo-able...
All materials in the model will now NOT have a texture...
-
@tig said:
Copy/paste all of this code into the Ruby Console + enter
model=Sketchup.active_model > model.start_operation('NoTex', true) > model.materials.each{|m| m.texture=nil } > model.commit_operation
It's one-step undo-able...
All materials in the model will now NOT have a texture...
That did the trick! Thanks TIG, you're the best
-
great & thanks Tig
And it is great that the interpolated colors from the now deleted textures remain
Advertisement