[Plugin] Component Dropper

[Plugin] Component Dropper

Postby thomthom » Thu Feb 11, 2010 9:25 pm

CompDropper.png


Tools -> Component Dropper

Works like the Material Dropper - but for components and groups.



  1. Make a selection containing groups and components. (Doesn't matter if it contains more, it'll be ignored.)
  2. Activate the tool
  3. Pick another group or component instance to replace the ones in your selection.

The replaced instances will be made to match the bounding box of the old.

Download



Known Issues:
  • 2D components won't work. Don't try to replace them. The replaced instances will end up as Zero Dimensional! You've been warned! (How many of you silly lads will still try this? Yea - I know what you're like.)
1
Last edited by thomthom on Sat Jan 18, 2014 1:31 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Thu Feb 11, 2010 9:32 pm

hmm... think I'm seeing some oddities in some cases... looks like I need to take another look.
1
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby xrok1 » Thu Feb 11, 2010 9:45 pm

another good one. :D maybe swapper or changer would be a better name though. ;)
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby solo » Thu Feb 11, 2010 9:49 pm

Thomthom, let's say i have a tree with 1000 leaves,I have a single polygon representing the leaf, can I substitute the single polygon (which is a group) for another group say a higher poly one with mapped texture to replace all instances of the low one?
0
www.solos-art.com

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby xrok1 » Thu Feb 11, 2010 10:04 pm

he he, you try it and tell us all ;)
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Thu Feb 11, 2010 10:07 pm

solo wrote:Thomthom, let's say i have a tree with 1000 leaves,I have a single polygon representing the leaf, can I substitute the single polygon (which is a group) for another group say a higher poly one with mapped texture to replace all instances of the low one?


Yes - I'd think so.

Just occurred to me that I don't copy the group/component material of the instance I replace...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Thu Feb 11, 2010 10:08 pm

xrok1 wrote:another good one. :D maybe swapper or changer would be a better name though. ;)

I was considering that, but choose "Dropper" to indicate it was a tool like the Material Dropper.

but I got another one baking which will be a "??? Swapper" ;)
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby xrok1 » Thu Feb 11, 2010 10:14 pm

good then, its just that when i first spotted this thread i was thinking of smartdrop at intersection and wondered what else could be done? drop is drop. :? :lol:
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby TIG » Thu Feb 11, 2010 10:32 pm

Unfortunately 'dropper' in English is usually taken as something to do with 'dropping' - i.e. it is 'something that 'makes drops' [drops = either some actual or potential physical movements downwards, or small globules of liquid] or makes things 'drop' [i.e. to move downwards] - long before it clicks that it is meant as 'eye-dropper' [something that makes eye-drops - i.e. globules of liquid that fall into the eye from a rubber-bulb activated pipette - commonly called an 'eye-dropper']...

So I recommend that you either rename it 'eye-dropper' or 'matcher' or 'swapper/swopper' or something else that doesn't sound like it's to do with things being made to fall downwards - the older tool 'Drop' moves selected components downwards so 'Dropper' sounds like it'll do something similar !!! ... :roll:

PS: it's a great idea otherwise :D
0
Last edited by TIG on Thu Feb 11, 2010 10:37 pm, edited 2 times in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby solo » Thu Feb 11, 2010 10:34 pm

swopper.rb?
0
www.solos-art.com

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby xrok1 » Thu Feb 11, 2010 10:36 pm

very punny Solo. but i like it!
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Thu Feb 11, 2010 10:40 pm

Swopper it is!
Well, that is - you got until my next update to name this ... thingy-ma-jiggy.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby utiler » Thu Feb 11, 2010 11:40 pm

cool, Thomas, D/L and having a play!!!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby bagatelo » Fri Feb 12, 2010 3:49 am

Great ThomThom. I had already thought previously about a plugin that made this.

For the name given to this script I thought that it was this plugin:
viewtopic.php?f=323&t=20233&p=223396#p223396
:(
0
Last edited by bagatelo on Fri Feb 12, 2010 9:59 am, edited 1 time in total.
While the cat's away, the mice will play
User avatar
bagatelo 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby pilou » Fri Feb 12, 2010 8:53 am

What happend about the old component? Killed?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Fri Feb 12, 2010 9:24 am

Pilou wrote:What happend about the old component? Killed?

Yes, the instance is slaughtered.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby d12dozr » Fri Feb 12, 2010 9:56 am

thomthom wrote:
Pilou wrote:What happend about the old component? Killed?

Yes, the instance is slaughtered.

:o :roflmao: Thanks for a good laugh Thomthom!
0
3D Printing with SketchUp Book
http://goo.gl/f7ooYh

d12dozr 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby pilou » Fri Feb 12, 2010 10:48 am

Thx for the precision ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby hsjzyangbin » Thu Mar 04, 2010 2:39 pm

very funny :berserk:
0

hsjzyangbin 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby arjunmax09 » Sat Mar 06, 2010 8:43 am

cool plugin thomthom... don't take a cookie .... you deserve a cake man... :D
chocolate-cake-oh-1727433-x.jpg



PS... i've eaten one piece out of it... hehe :lol:
0
when you fail at something....you haven't really failed...you've found one way the thing will not work out

arjunmax09 
Banned
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby unclex » Sat Mar 06, 2010 9:14 am

use it.... for what ?????
0

unclex 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby pilou » Mon Jan 24, 2011 2:25 pm

No chance to see Component Dropper multiple?
That will be very cool! :enlight:

1. Make a selection containing groups and components in a certain order (or automatically randomly with a general selection). (Doesn't matter if it contains more, it'll be ignored.)
2. Activate the tool
3. Pick another group"s" or component"s" instance in a certain order (or automatically randomly with a general selection) to replace your selection.
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Mon Jan 24, 2011 3:46 pm

Pilou wrote:in a certain order

In which order?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby pilou » Thu Feb 03, 2011 11:50 am

certain order

In the order of the one by one clic selection

Ps about the plug itself first post
Does it possible to keep the original size of the component and not an adapted size?
( a simple past replace in place)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Thu Feb 03, 2011 12:04 pm

Pilou wrote:Ps about the plug itself first post
Does it possible to keep the original size of the component and not an adapted size?
( a simple past replace in place)

No. But I've wanted this myself. So added to todo list.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby Edson » Sat Jan 05, 2013 2:31 pm

Comp Dropper never got renamed to Comp Swopper, right?
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby Edson » Sat Jan 05, 2013 2:41 pm

thomas,

correct me if I am wrong. the way this plugin improves on the regular method (choosing a number of components in the model and replacing by another by right-clicking on this 2nd one in the components dialog and choosing "replace selected") is because it can also perform the same act on groups whereas the native method works only on components.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby thomthom » Sun Jan 06, 2013 1:04 pm

It also tries to preserve the component instance's size.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby victor hugo » Wed Feb 27, 2013 4:04 am

Is there something like the dropgc but to be undropped?

reason for this is when I work on placing light fixtures on a reflected ceiling, I will have those placed on the floor plan then "undrop" so they will attach to the ceiling?

is there something like it out there to do this?.

Thanks.
0

victor hugo 
 

Re: [Plugin] Component Dropper (1.0.0) — 11 January 2010

Postby pilou » Wed Feb 27, 2013 4:15 am

I have made in the past a sort of Undrop

Not sure it's that you want ?

You have also Eclate Deplace By Cplassay and me ;)

But if your lights are not Group or component that will be impossible!
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 6 guests

Visit our sponsors: