[plugin]Random replacement of components

Re: [plugin]Random replacement of components

Postby pilou » Mon Jun 27, 2011 1:36 pm

@Edson :)

No, Source and Target are not nescessary names ;)
It's just these given by default in the dialog box ;)
you can put any names you want :) (of course these that you have yet renamed your components in the Info Box ;)
But carreful it's sensitive cases !!!
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby pilou » Wed Jul 27, 2011 11:22 pm

And here the 24 positions plug of Sdmitch ;)
With his autorisation! :fro:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby AcesHigh » Fri Aug 12, 2011 3:52 pm

there are many uses for this plugin.

for example... think of 3D tiles on a roof. Each tile is a component. But the roof gets so artificial, with all the tiles exactly the same color, no stains, etc. With this plugin, you would be able to, for example, create some 10 different roof tiles, each of them a slight different color variation, some stains, etc. And randomly replace the original components along the entire roof.

another possibility: a building with a glass façade. Real such buildings will have curtains/blinds behind the windows. Make the the building with window components. The random replace them with OTHER window components, each window component with blinds in different positions (no blinds, blinds half way pulled, pulled down completely)


there are so many uses!!!
0

AcesHigh 
 

Re: [plugin]Random replacement of components

Postby rachmatrf » Tue Feb 21, 2012 9:28 am

Thhank you Sdmitch :berserk:
0

rachmatrf 
 

Re: [plugin]Random replacement of components

Postby pilou » Thu May 31, 2012 10:39 am

Sdmitch has made a new variant with no Random integrated! :enlight:
(see second post for more precsion of use ;)

No Random.jpg
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby solo » Wed Feb 13, 2013 5:47 pm

This is not working for me, Pilou can I send you a sample model by pm and you show how to do it?
0
http://www.solos-art.com

I'm better with polys than words
User avatar
solo 
Global Moderator
 

Re: [plugin]Random replacement of components

Postby pilou » Wed Feb 13, 2013 5:52 pm

Of course yes you can! :enlight:
with a small file (sufficient for the concept) and a save as V7!!! ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby solo » Wed Feb 13, 2013 5:58 pm

http://dl.dropbox.com/u/1129899/test%20tree.skp

Strange how the size of file increases 50% when saving as SU7 from SU 8.
0
http://www.solos-art.com

I'm better with polys than words
User avatar
solo 
Global Moderator
 

Re: [plugin]Random replacement of components

Postby pilou » Wed Feb 13, 2013 6:02 pm

Sorry it's always V8 when its arriving at home !!! ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby solo » Wed Feb 13, 2013 6:06 pm

0
http://www.solos-art.com

I'm better with polys than words
User avatar
solo 
Global Moderator
 

Re: [plugin]Random replacement of components

Postby JBJDesigns » Tue Apr 16, 2013 11:45 pm

This is an awesome plugin... thank you both very much!!! Jo :D
0
...you send them to school, you give them books, and they eat the pages...
User avatar
JBJDesigns 
Premium Member
Premium Member
 

Re: [plugin]Random replacement of components

Postby tetrochuan » Sat Apr 27, 2013 3:10 pm

might it be possible that the plugin would work with grouped and nested components?! that would be übercool!!
1

tetrochuan 
 

Re: [plugin]Random replacement of components

Postby coty82 » Wed Oct 15, 2014 7:00 am

This plugin is indeed great with so much potential. Do you think it could be possible to
make it able to replace child components that are inside mother componennts?
You could do so many patterns just by replacing components inside components.
0

coty82 
 

Re: [plugin]Random replacement of components

Postby sdmitch » Wed Oct 15, 2014 9:41 pm

coty82

Please check Personal Messages.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby coty82 » Thu Oct 16, 2014 2:27 am

Hello sdmitch
Thanks for the fast reply! I have installed it but unfortunatelly when i try to use it it just freezes Sketchup no matter if i choose to include child components or not. Is it working for you?
0

coty82 
 

Re: [plugin]Random replacement of components

Postby coty82 » Thu Oct 16, 2014 2:46 am

Update
I am trying to use it like this :
I have two components. One of them is named Target. I select them both and make them a mother component. This is how i was thinking of it to work.
I create another component named Source. When i use the plugin like this it just freezes.
But when i have two componenets and make them a group, and try to use the plugin, nothing happends, but it doesnt freeze neither.
Sorry i cannot reply in private because i dont have enough activity on the forums :)
0

coty82 
 

Re: [plugin]Random replacement of components

Postby sdmitch » Thu Oct 16, 2014 2:43 pm

coty82 wrote:Update
I am trying to use it like this :
I have two components. One of them is named Target. I select them both and make them a mother component. This is how i was thinking of it to work.
I create another component named Source. When i use the plugin like this it just freezes.
But when i have two componenets and make them a group, and try to use the plugin, nothing happends, but it doesnt freeze neither.
Sorry i cannot reply in private because i dont have enough activity on the forums :)


The plugin does not look for groups, components only. I see that the plugin has a bug, that I will fix, when there is only a single "Source" component. Create a second "Source" component and try again.


Check PM's for updated version.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby coty82 » Fri Oct 17, 2014 2:21 am

Allright, it works now, thanks alot :thumb: ! But i noticed that it only works with a single level in the components hierarchy, that is when i have some individual components part of a mother component. But if i include this in another larger component, it doesnt work. Even if i copy the source inside the larger component. Its still great but i wonder if this would be a difficult property to implement?

Anyway i have another ideea about it :D . In a previous post you said it is also able to replace components based on a rule? For example i have 3 sources 1, 2, 3 And i want to distribute them according to a repeating pattern for ex 11231123, etc. They could replace an array of targets. This would be amazing for creating panelling patterns for facades for example. But it would probably need to work with something like series, to know the start and ending point. Dunno if its possible or how complicated?
0

coty82 
 

Re: [plugin]Random replacement of components

Postby sdmitch » Fri Oct 17, 2014 2:49 am

Yes, it currently will only work for one level, mother and child, no grand kids.

As the name implies, it is supposed to be a random replacement.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby coty82 » Fri Oct 17, 2014 3:28 am

I see there is another version with No random option, how is it working? I tried but i didnt see a difference.
0

coty82 
 

Re: [plugin]Random replacement of components

Postby sdmitch » Fri Oct 17, 2014 3:41 am

coty82 wrote:I see there is another version with No random option, how is it working? I tried but i didnt see a difference.


Component Replacement has a random option which, if not selected, causes the "Target" components to be replaced in order by the "Source" components. The results is dependent on the order the "Source" components are found in the model or selection.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby coty82 » Fri Oct 17, 2014 4:17 am

sdmitch wrote:
coty82 wrote:I see there is another version with No random option, how is it working? I tried but i didnt see a difference.


Component Replacement has a random option which, if not selected, causes the "Target" components to be replaced in order by the "Source" components. The results is dependent on the order the "Source" components are found in the model or selection.


Oh i see. And what is the rule by which it finds the "Source" components? It always gives me the same result but the initial order seems random. I couldnt replicate your example where you have components 1, 2, 3 which then become a repeated sequence in the target. Could you also integrate this no random feature in the version with child option as well? :D Thanks
0

coty82 
 

Re: [plugin]Random replacement of components

Postby pilou » Fri Oct 17, 2014 8:24 am

Can you post an image of results of this new version (parent / child) ?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby sdmitch » Fri Oct 17, 2014 4:55 pm

Pilou wrote:Can you post an image of results of this new version (parent / child) ?


The result looks the same.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby sdmitch » Fri Oct 17, 2014 5:36 pm

I have added the recursive search to my Component Replacement plugin. You can obtain a copy from my blog page. This is a total replacement for the original Random Component Replacement plugin.
1
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby pilou » Fri Oct 17, 2014 6:02 pm

Thx, I will explore this new opus! :enlight:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby AcesHigh » Wed May 20, 2015 7:36 pm

It would be really nice if we could set % of random replacement.

example:

have a building with 300 closed window components. These will be the target

then we also have 4 other window components that will be used as sources: totally opened window, 3/4 opened window, half opened window and 1/4 opened window

this plugin, as it is, will replace ALL closed windows with a random number of each of the other 4 windows.


but it would be ideal if we could decide to make random ONLY which components will be replaced, not the number.

So...

Original Component Remaining: 30% (I set to 30% so 30% of the 300 closed windows will remain as the "closed window" component

Source 1 - 10% (of 300)
Source 2 - 20%
Source 3 - 30%
Source 4 - 10%

After the operation, in random locations of the building, we would have
90 closed windows (original component)
30 4/4 open windows
60 3/4 open windows
90 half open windows
30 1/4 open windows
0

AcesHigh 
 

Re: [plugin]Random replacement of components

Postby pilou » Wed May 20, 2015 10:43 pm

It would be really nice if we could set % of random replacement.


Just build the source with your result % wished! ;)
It's not a big deal to make some copy move for build your sets of %! ;)

4 seconds * 16 cases = 1 minute :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [plugin]Random replacement of components

Postby sdmitch » Sat May 23, 2015 1:25 pm

pilou wrote:
It would be really nice if we could set % of random replacement.


Just build the source with your result % wished! ;)
It's not a big deal to make some copy move for build your sets of %! ;)

4 seconds * 16 cases = 1 minute :)


Sorry but I don't think this method will work because the Sources are picked randomly and, other trying to avoid picking the same source back to back, there is no tracking of the number of each of the sources that have been picked.

However, I have created a version that does if anyone else is interested.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin]Random replacement of components

Postby pilou » Sat May 23, 2015 4:51 pm

If you have 50 Blue objects, 50 Pink Objects (B, P, B, P.....)
Pick randomly in this bicolored list as Source will be very near than 50 % / 50 % of each color! ;)
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: archkid_09, Bing [Bot], mejdzul and 36 guests

Visit our sponsors: