[REQUEST] Directly Replace One Compenent with Another
-
Let's say I have Component A,option1and I want to replace it with Component A, Option2.
One way to accomplish this is to save Component A, Option2 as a separate file and then select Component A, Option1, right-click and pick Reload and choose ComponentA, Option2 from the directory list. Then ALL occurences are replaced.
But, what if I want to replace just ONE occurance? What about a selection of more than one of the same component? Hypothetically, a selection of different components or even groups?
Minimally, it would be nice to be able to right-click on a component and from the context menu, select "REPLACE", and then: A. choose directly from the model's components dialog or B. simply click on another component on screen and press enter.
For more complex replacements as listed above, what about a search and replace function script... perhaps utilizing the Outliner?
If the user is careful in how they build their components and assign their respective axes/origins, then models, for example, of house framing or piping could easily be modified.
Regards, John
-
Make Unique before you Replace?
@jclements said:
select "REPLACE", and then: A. choose directly from the model's components dialog or B. simply click on another component on screen and press enter.
Mind you, I'd been meaning to make a component-sampler - similar to the material sampler you get when you press Alt with the Paint Bucket.
-
Do you need to do this from within a Ruby script? Otherwise, just select all the instances you want to replace, and then in the component window, right click on the new component, and choose "replace selected". CB.
-
You also have this excellent script... ApplyTo, by Rick Wilson...
-
@jclements said:
ThomThom, if Rick wouldn't mind perhaps an "Eyedropper" version could be developed that works similar to the Materials Editor dialog:
a) You make your selection, right-click, choose "pick a replacement component", an eyedropper appears, click on another component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail) and the selection is replaced.
That's pretty much how I imagined the script would be.
-
Daiku >> Thanks. I never noticed that option before.
Matt666 >> Thanks for pointing the script out, I didn't realize what it actually did. (I changed the menu name in my copy).
ThomThom, if Rick wouldn't mind perhaps an "Eyedropper" version could be developed that works similar to the Materials Editor dialog:
a) You make your selection, right-click, choose "pick a replacement component", an eyedropper appears, click on another component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail) and the selection is replaced.
b) If you don't have a selection, right-click on any entity, choose "pick a replacement component", eyedropper cursor appears, click on a component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail), cursor changes to a paint-bucket, "pour" the replacement component onto another component(s), press any key to end.
Perhaps replacing a component with a group or vise versa would be useful too? Toggle through the 3 modes (comp to comp, comp to group, or group to comp) via the Tab key.
-
I don't know if this is the right place to request for this. But please can someone send me the s4u-to-component v3.0.0 or v4? Or any free sketchup plugin that has the component replace option. Thanks very much
Advertisement