Replace in place?
All  1-6  7-17

Previous
Next
 From:  Michael Gibson
3974.7 In reply to 3974.4 
Hi Pilou, here is are the steps that I'm talking about.

Say you have a bunch of boxes and you want to replace some random number of them with a sphere.

So you start out with things like this:



First select all the boxes like this:



Then run the random deselection script from here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3927.2

Some random pieces will get deselected, looking something like this:



Run the script from before in this thread to place a point at the center of each selected object:



Now delete those selected objects:



And finally use Petr's CopyToPoints command () to duplicate the object:
http://kyticka.webzdarma.cz/3d/moi/#CopyToPoints



- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3974.8 In reply to 3974.7 
No It's not that :)
See my previus post ;) http://moi3d.com/forum/index.php?webtag=MOI&msg=3974.6
I want replace all the blue cubes!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3974.9 In reply to 3974.6 
Hi Pilou,

> I want replace all objects with a family of other objects
> (who can be any number of objects) :)

So how about just repeat those steps above one time for each object in your family?

That should give you a mixture of replaced objects...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3974.10 In reply to 3974.8 
Hi Pilou,

> I want replace all the blue cubes!

No problem - on the first replace just do not run the random deselection script so that you will replace all cubes on that pass.

Then repeat the steps for each additional object in the family but do the random deselection script this time.

That should result in a mixture of objects from your family of replacements, but with all original blue cubes replaced, right?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3974.11 In reply to 3974.9 
< So how about just repeat those steps above one time for each object in your family?
Yes of course I can : it's maybe some easy for few objects in a familly but some tiedious when you have some ;)
Imagine with the 24 dices possible for a line of 100 cubes!
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3974.12 In reply to 3974.10 
yes no problem with one object in the family!
That is perfect!

But very more complex when you have a big family! (24 dices)
so 24 pass !

EDITED: 13 Jan 2011 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3974.13 In reply to 3974.11 
Hi Pilou,

> Imagine with the 24 dices possible for a line of 100 cubes!

Well, that's 24 steps, but each step is happening pretty quickly.

Probably something like 10 minutes to finish?

That's not too long for some specific desired result like this...

Just make something fewer than 24 pieces to the family to make it go faster! :)

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3974.14 In reply to 3974.13 
yes you right but it's better when computer makes that for us :)

it's possible but not very funny :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3974.15 In reply to 3974.14 
Hi Pilou,

> yes you right but it's better when computer makes that for us :)

Yes, but the computer doesn't do it on its own, someone has to program the computer to do such things...

So for example if it takes me 45 minutes to make a specialized command to make something unusual like that work faster, but it only takes you 10 minutes to actually do it in the first place, it works out better (for me anyway!) for you to do the 10 minutes part instead... ;)

If you want to do some interesting and unusual things, doing some work to produce them is just something to expect as normal.

But there are some computer-aided pieces in there to help you - things like the random deselection script, Petr's CopyToPoints command, and the script to create points at the center of each individual selected objects are each replacing a lot of manual work that you would otherwise have to do. Those should help to make it 10 minutes of work instead of many hours of work...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3974.16 In reply to 3974.15 
Totally right!
I have a possible solution in a reasonable time!
With the help of your script and the other from Petr!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
3974.17 
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-17