Randomly replacing Component for other?
-
Ok, I guess the title is not very clear.
Anyway, this is an idea I have to help modelling big scenes (mainly big buildings)
Basically, I have found a bit difficult trying to make big scenes where you need a bit of a "random" factor.
Examples: window blinds in a skyscraper... in a real photo, you will see some pulled down... some pulled halfway... other completely open. But try to manually place different components (open, halfway open and shut) window blinds over 1000 windows!
I can see several other uses for such a thing too. Including placing the same Light component (from VRAY for example) inside a building, in all floors... and then randomly replacing it for turned on and turned off Light components.
The plugin would position the new components over the old ones based on their Axes...
Anyway... does anyone likes the idea, or thinks its possible?
-
@aceshigh said:
Ok, I guess the title is not very clear.
Anyway, this is an idea I have to help modelling big scenes (mainly big buildings)
Basically, I have found a bit difficult trying to make big scenes where you need a bit of a "random" factor.
Examples: window blinds in a skyscraper... in a real photo, you will see some pulled down... some pulled halfway... other completely open. But try to manually place different components (open, halfway open and shut) window blinds over 1000 windows!
I can see several other uses for such a thing too. Including placing the same Light component (from VRAY for example) inside a building, in all floors... and then randomly replacing it for turned on and turned off Light components.
The plugin would position the new components over the old ones based on their Axes...
Anyway... does anyone likes the idea, or thinks its possible?I think that it can be done with existing stuff...
Make several similar components with the same insertion point etc but with the blinds in different states of deployment.
Place one version of the component at every window - use copy/array etc [or even my Matrix ruby?].
Use the Component Browser right-click 'trick' to select all instances of that component.
Use a tool like RandomSelect.rb [ http://forums.sketchucation.com/viewtopic.php?p=44671#p44671 ] and you then have a percentage selected at random as desired.
Use the Component Browser right-click 'trick' again, this time to replace selected with one of the other versions of the blind.
Repeat until you have your various versions randomly deployed around the model... -
@tig said:
@aceshigh said:
Ok, I guess the title is not very clear.
Anyway, this is an idea I have to help modelling big scenes (mainly big buildings)
Basically, I have found a bit difficult trying to make big scenes where you need a bit of a "random" factor.
Examples: window blinds in a skyscraper... in a real photo, you will see some pulled down... some pulled halfway... other completely open. But try to manually place different components (open, halfway open and shut) window blinds over 1000 windows!
I can see several other uses for such a thing too. Including placing the same Light component (from VRAY for example) inside a building, in all floors... and then randomly replacing it for turned on and turned off Light components.
The plugin would position the new components over the old ones based on their Axes...
Anyway... does anyone likes the idea, or thinks its possible?I think that it can be done with existing stuff...
Make several similar components with the same insertion point etc but with the blinds in different states of deployment.
Place one version of the component at every window - use copy/array etc [or even my Matrix ruby?].
Use the Component Browser right-click 'trick' to select all instances of that component.
Use a tool like RandomSelect.rb [ http://forums.sketchucation.com/viewtopic.php?p=44671#p44671 ] and you then have a percentage selected at random as desired.
Use the Component Browser right-click 'trick' again, this time to replace selected with one of the other versions of the blind.
Repeat until you have your various versions randomly deployed around the model...interesting... but wont that create a statistical problem?
okay, I am writing down here at the same time I think, so I may or may not reach the conclusion I thought...
Lets say you have 100 X components. With my "plugin request", if you had 3 different components (A, B and C), each of the 100 components would have a 33% chance of becoming one of the 3 other components, either A, B or C.
So you would end up with 33.3 A, 33.3 B and 33.3 C (of course, its random, so you MAY end up with 100 As, but I am talking about an AVERAGE after an infinite amount of tries)
With your methods... lets see...
You have 100 X components.You apply the Random Selection plugin. Each component has a 50% chance of being selected. So I end up with 50 X Components Selected and changed for the A component.
Now I have 50 components, I use the random plugin again, and have 25 X components selected. 25 Will become B and 25 will become C.
If I have A B C and D components, it gets even worse.
50% for A (50)
50% of 50% for B (25)
50% of 25% for C and D (12.5)if I have A, B, C, D, E, F, G, H, I and K
50 for A
25 for B
12.5 for C
6 for D
3 for E
1.5 for F0 for the rest!
-
hmmm... forget it. Only now I see you can enter the % of chance of selection
then of course, you can manually select only 33% for each component first selected
-
Would a dynamic component work with random attribute built into it. But when you take your first instance and copy it to other locations, I don't know if it re-calculates the random#. I haven't really used the random feature before.
But I can see where it would be nice to quickly click on component instances and have it randomly replaced with a component from a specific list. At the start of the ruby it could ask for names of components to include in the list, or maybe the ruby is written for rubys with specific prefix in their name.
Advertisement