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_operationIt'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_operationIt'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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better ๐
Register LoginAdvertisement