SketchUcation Premium Membership

 

 

[Plugin] Material Tools (2.6.0) — 19 February 2013

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby dedmin » Fri Oct 22, 2010 12:19 pm

As far as I tried - yes.
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Fri Oct 22, 2010 12:19 pm

Ok - I'll see if I can make a debug version to detect where it splats.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby ray678 » Thu Dec 02, 2010 7:03 pm

thanks for sharing
ray678
 
Posts: 1
Joined: Thu Dec 02, 2010 7:01 pm
Name: Ray Luk

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby spence » Fri Dec 03, 2010 6:30 pm

This is a great plugin Thomas, thanks :D
Spence
User avatar
spence
Premium Member
Premium Member
 
Posts: 255
Joined: Sun Nov 18, 2007 5:55 pm
Location: Utah, USA
Name: Spence

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby nektares » Sat Dec 04, 2010 8:09 pm

Thanks ThomThom! your plug-ins are really cool!
nektares
 
Posts: 101
Joined: Fri Jun 20, 2008 3:38 pm

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby bentleykfrog » Fri Jan 07, 2011 4:30 am

Great plugin thomthom, nice work, only wish remove by selection would remove the materials applied to faces and groups/components inside selected groups/components, and components in selection are made unique.
bentleykfrog
 
Posts: 84
Joined: Thu Sep 10, 2009 2:27 am
Location: Adelaide, Australia
Name: Niall Campbell

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Thu Jun 02, 2011 8:55 pm

I'm not getting 'Remove Material from selection' to work?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Thu Jun 02, 2011 8:57 pm

Rich O'Brien wrote:I'm not getting 'Remove Material from selection' to work?

Errors in the console?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Thu Jun 02, 2011 8:58 pm

My bad...

Code: Select all
Error: #<NameError: undefined local variable or method `ents' for TT::Plugins::MaterialTools:Module>
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `remove_all_from_selection'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `each'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `remove_all_from_selection'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:62
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/recurve.rb:17:in `call'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/recurve.rb:17
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Thu Jun 02, 2011 8:59 pm

Actually I just noticed that right clicking produces this error

Code: Select all
Error: #<LocalJumpError: unexpected return>
(eval):106:in `load'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `call'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Thu Jun 02, 2011 9:00 pm

Sorry this error

Code: Select all
Error: #<LocalJumpError: unexpected return>
(eval):106:in `load'
(eval):106:in `call'
(eval):106
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Thu Jun 02, 2011 9:02 pm

I think the problem is with Recurve? i'm getting all sorts of errors when I right click
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Tue Jun 28, 2011 12:32 pm

Problem isn't Recurve as I've removed it....

Code: Select all
Error: #<NameError: undefined local variable or method `ents' for TT::Plugins::MaterialTools:Module>
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `remove_all_from_selection'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `each'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `remove_all_from_selection'
C:/Program Files (x86)/Google/Google SketchUp
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Tue Jun 28, 2011 12:57 pm

Stop breaking things!
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Tue Jun 28, 2011 12:58 pm

They call me Mr.Glass
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Tue Jun 28, 2011 12:59 pm

As a DIY quick-fix - change
if ents.respond_to?( :back_material )
to
if e.respond_to?( :back_material )
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Rich O Brien » Tue Jun 28, 2011 1:33 pm

Sorted :thumb:

Now I'll break something else
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8264
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Tue Jun 28, 2011 1:49 pm

Go'n run with scissors or something...
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby Pherim » Mon Sep 12, 2011 9:06 pm

I like find this plugin very useful, especially the possibility to transfer the instance material to the faces inside the group or component, but that results in the backfaces also being painted. But sometimes I just want all the instance material gone as I sometimes accidentally assign a material to a group or component and later I can't find it any more. This is especially annoying if the material is not used any more in the rest of the model but remains in the material browser and doesn't get purged. I tried removing all backface materials after transferring the instance material but that resulted in also losing all backface materials I assigned intentionally. Is there a way to simply remove all instance materials?
Pherim
 
Posts: 41
Joined: Sat Jun 12, 2010 8:40 am
Location: Germany

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby jorge2011 » Sun Oct 02, 2011 4:01 pm

Hello sr thomthom.
I think I'm doing something wrong or is there a bug in the plugin.
1 - Remove From Selection.
Error: # undefined local variable or <NameError: `ents' method for TT::Plugins::MaterialTools:Module>
C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 270: in `remove_all_from_selection '
C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 256: in `each '
C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 256: in `remove_all_from_selection '
C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 62
add
Groups only erases materials or components. If you edit a component or group and select faces and edges were deleted material.
If I select faces or edges that are not in a group or component, the materials are not deleted.
If I select a group / component, which contains within groups / components nested, the materials are not deleted.
if I apply a material to a group / component and other material to the face that contains this group, only delete the material applied inside to the faces in the group / component

2 - Remove Specific Material
only works with colors. Textured materials does not work.
In addition, when shown the list of materials to remove, it only shows the name of the texture of the material, rather than the name of the material


is possible to solve this problem.
Thank you very much for your time
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby TIG » Sun Oct 02, 2011 4:43 pm

Is this the latest version 2.2.0?

if so it looks to me like you have some code 'missing' in the script - you haven't opened the .rb script with a wordprocessor and then saved or edited it with say Notepad.exe ??
Line #270 is actually about if e.respond_to?( :back_material ) while the offending error for 'ents' should occur earlier in line #260 where it first appears as parent.entities.each { |ents| or the next three lines #262/263/264 - so there's obviously something wrong here...
Try reinstalling the tool and come back...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13898
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby jorge2011 » Sun Oct 02, 2011 5:32 pm

tig thanks for your reply.
But reinstalling the plugin and the library. The plugin still generates the same error.
I use sketchup in Spanish, has something to do this?

Error: #<NameError: undefined local variable or method `ents' for TT::Plugins::MaterialTools:Module>
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `remove_all_from_selection'
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `each'
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in `remove_all_from_selection'
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:62
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `call'
C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby TIG » Sun Oct 02, 2011 6:12 pm

I think we must wait for thomthom himself to reply.
As far as I can see you can't get that error with a correctly installed script :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13898
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby thomthom » Sun Oct 02, 2011 9:16 pm

I have an update for this in an unreleased version. I'll get it online soon.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.2.0) — 21 October2010

Postby jorge2011 » Sun Oct 02, 2011 9:53 pm

many, thank you very much. is a very useful tool
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Material Tools (2.5.1) — 03 October 2011

Postby thomthom » Mon Oct 03, 2011 8:33 am

Version 2.5.1
Code: Select all
# 2.5.1 - 29.06.2011
#    * Fixed typo bug in Remove From Selection.
#
# 2.5.0 - 15.12.2010
#    * Paint roof.
#
# 2.4.0 - 15.12.2010
#    * Ensure Unique Filenames.
#
# 2.3.0 - 31.10.2010
#    * Remove All Textures.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.5.1) — 03 October 2011

Postby jorge2011 » Mon Oct 03, 2011 11:03 am

thom excellent update.
still not cleared yet assigned to groups of materials / components.
You can correct this?
Please, register (free) to access all the attachments on the forums.
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Material Tools (2.5.1) — 03 October 2011

Postby thomthom » Mon Oct 03, 2011 11:53 am

jorge2011 wrote:thom excellent update.
still not cleared yet assigned to groups of materials / components.
You can correct this?

? You're still getting errors?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Material Tools (2.5.1) — 03 October 2011

Postby jorge2011 » Mon Oct 03, 2011 2:08 pm

no, no errors.
but does not remove the materials assigned to a group.
if you remove the materials assigned to faces and edges contained within the group.
see the file

and
Remove Specific Material
only works with colors. Textured materials does not work.
In addition, when shown the list of materials to remove, it only shows the name of the texture of the material, rather than the name of the material


is possible to solve this problem.
Thank you very much for your time
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Material Tools (2.5.2) — 04 October 2011

Postby thomthom » Tue Oct 04, 2011 8:24 am

Version 2.5.2
Fixed bug in Remove From Selection
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17542
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: ekaytan and 6 guests