Array on a spline with some randomisation  1-20  21-40  41-60  61-63

Next
 From:  Samuel Zeller
5416.1 
Hi guys,

I'm currently working for Moët & Chandon (shop windows) for christmas.

Using MoI + Cinema 4D for the modelling but mostly MoI because I need to output vectors for construction purposes.

I'm trying to make those diamond like particles but instead of using Mograph -> black and white render -> vector -> MoI import -> cleanup

I'd like to make them in 3D in MoI then use the silhouette tool to make the 2D version (it's gonna be printed on glass)

So I need a spline (in 2D or 3D) and my diamond shape. Array on the spline (like 100 times). Then a script to move all diamond shapes randomly. Then a script to rotate them randomly (one one or two axis). Then maybe something to scale them randomly.

Is there such scripts already available ?

-- shapenoid.com

  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:  Samuel Zeller
5416.2 In reply to 5416.1 
Note that I'm not trying to do 100% the same thing than in this picture, just trying to get a more simple effect.
-- shapenoid.com
  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
5416.3 In reply to 5416.1 
Hi DesuDeus, I don't think that there is an existing script that will do all that. I'll see what I can cook up for you a ways later tonight though, the base script would be a modification of this previous one:

http://moi3d.com/forum/index.php?webtag=MOI&msg=5243.13

- 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:  bemfarmer
5416.4 
During my nap I came up with:
Only one diamond seed pattern is needed. It would have a very slight thickness.
One loop would control the random rotation of the seed, but rotation would be selectively limited to say 70 degrees so that none of the diamonds appeared to be edge on. There would be three rotations, point-point, point-point, and center.
The rotation would have the effect of making the diamonds look smaller.
Number of diamond per wavy line would be selectable.

The rotated seeds would be placed at a random length along one of the base curves.
A base curve could be a parabola, as for falling seeds, spilled from a jar.
A helix might be a good base curve, or just a wavy line.

Additional wavy lines could be by semi-random offset.

Then add some wind...

Edit, or Scale X or Scale Y looks 2D, like a rotation.

EDITED: 20 Sep 2012 by BEMFARMER

  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
5416.5 In reply to 5416.1 
Hi DesuDeus, give the attached Randomize plug-in a try.

To install it, unzip and copy it to the \commands sub-folder. That will then make a new command available named Randomize, and you can set up a keyboard shortcut to launch it press tab and type in the name Randomize and push enter.

It will let you do a combination of random movement, rotation, and scaling on the selected objects. When it's calculating you will see things come through in waves, with all movement done first, then the rotation then the scaling after that, so don't worry when you don't see any rotation or scaling on the very first pass through.

Here's an example:







Hope it helps! There may be some bugs, I've only very quickly put it together.

- Michael

EDIT: Updated randomize.zip with a new version, some details on new functions later in this thread here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=5416.24

EDIT 9/10/2016 : Updated randomize.zip with another new version to speed it up.

EDITED: 10 Sep 2016 by MICHAEL GIBSON


  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:  bemfarmer
5416.6 
Made a "diamond" shape.

Tried to do a rotation script, by modifying the older RotateObjects script, and adding in random angles,
but am unable to delete the original diamond, due to being a poor programmer/ not understanding. :-)


I'll have to read Michaels now.

Edit: I removed my flawed script. It also contained rotation about the Top, Front, and Right frames, as well as
factory.calculate() to further process the modified object, but is much cruder and limited than Michaels.
Note that using factory.calculate causes the original object to remain in the geometry database, so that it must be
removed by a line of code, if no longer wanted... Still a good learning experience.

EDITED: 10 Aug 2013 by BEMFARMER

  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
5416.7 In reply to 5416.6 
Hi Brian, we just posted some new messages at the same time, so just a heads up you might not have seen my new one above, that one should be a good example to check out for this kind of stuff.

> but am unable to delete the original diamond

If you know the object that you want removed you can call moi.geometryDatabase.removeObject( obj ) to take it out of the geometry database so that it won't be part of the regular model on the screen anymore.

- 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:  bemfarmer
5416.8 In reply to 5416.5 
Need to upload your new script :-)
  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
5416.9 In reply to 5416.5 
Hi DesuDeus, also note that this does not do anything specifically along a spline, but the general idea is make the array along the spline in the regular way, then use this new Randomize command to perturb it.

- 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:  bemfarmer
5416.10 In reply to 5416.7 
Thank you 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
5416.11 In reply to 5416.8 
Hi Brian, ooops yup that helps if I actually attach it! :) I've put it there on that previous message now, thanks for the heads up!

- 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:  Samuel Zeller
5416.12 
Wow guys, this is the best support forum of all time.

I post my problem and Michael make a script for when I wake up... Amazing !

Frankly you're saving my life because I need to finish that version for later today aha

My manual workflow (before the randomize script) was:

- Generate the particles in Cinema 4D
- Render white diamonds on black background in huge resolution
- Vectorize in Illustrator
- Use the rebuild command in MoI 3D for cleanup
- Manual cleanup
- Planar
- Trim to the size of the shop window
- Export back to Cinema 4D and render with the whole scene


I need to say that the rebuild curve command is just amazing !

Thanks Michael and Bemfarmer for your help :)

By the way I'm working for Moet & Chandon at 90% in MoI 3D, can't post what I do now but I will as soon as I'm allowed to !

Also at work we're about to buy three or four MoI 3D licenses because I showed them how cool it was :D
-- shapenoid.com
  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:  coi (MARCO)
5416.13 
now that's a pretty sexy script. i love the sequential parameter thingy!

thank you,
marco
  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:  DannyT (DANTAS)
5416.14 In reply to 5416.5 
I'm liking these 'random' scripts you cook up Michael, thanks! now just to manage them all with that script manager/popup thingy that we're all waiting for ;)

They've already cloned a sheep, so all we need to do is get you over to the cloning clinc and get you cloned, how many of you would you need to help out with all the requests?

Or will Mrs G stop us, being married myself my wife would say, One Danny is enough! ;)

Cheers
~Danny~
  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:  Mauro (M-DYNAMICS)
5416.15 In reply to 5416.12 
Shapenoid

<< I post my problem and Michael make a script for when I wake up... Amazing>>

...i hope you'll send a bottle to Michael for Christmas...

great work !

M
  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:  bemfarmer
5416.16 
Here is a Top View of an array of flat "diamonds," on which Michaels new script Randomize has been applied,
with a maximum angle of 55 degrees. This way edge on views are avoided.

I was going to claim that z axis rotations up to 180 be allowed, with y and x about 55 degrees, but upon reconsideration, am probably mistaken.
One think about randomized, is that the results are non-reproducible.


EDITED: 18 Mar by BEMFARMER

Image Attachments:
Size: 49.5 KB, Downloaded: 1 time, Dimensions: 170x167px
  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)
5416.17 
Very funny!
Will work fine also with Scale Array ;)
  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
5416.18 In reply to 5416.12 
Hi DesuDeus, you're welcome and I'm glad that will be useful for you!

And congrats on the job with Moët & Chandon too, that sounds like some pretty cool work you've got lined up!

- 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
5416.19 In reply to 5416.14 
Hi Danny,

> how many of you would you need to help out with all the requests?

I've got enough stuff lined up that I'm pretty sure I could keep at least 10 busy! :)

- 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:  Marc (TELLIER)
5416.20 In reply to 5416.19 
This really made my day, I was searching for a quick way to make an abstract floor pattern...

Some small details:

Quick switch to enable/disable rotate, scale or move without clearing all fields

Undo doesn't work, a preview button maybe?

It could be nice to have xyz constraints on the scale factor like rotate and move, say you want to generate a landscape of buildings and have different heights.


Marc






  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:  1-20  21-40  41-60  61-63