Array on a spline with some randomisation
 1-10  11-30  31-50  51-66

Previous
Next
 From:  Michael Gibson
5416.31 In reply to 5416.26 
Hi Pilou,

> Does it possible to have something for the Move like this
> 0 to 10 so a "direction" of the Move :)

You could get this by editing the Randomize.js script - find the spot with:
code:
function MoveObject( obj, move_dist, move_x, move_y, move_z )
{
	var dx = !move_x ? 0.0 : RandLerp( -move_dist, move_dist );
	var dy = !move_y ? 0.0 : RandLerp( -move_dist, move_dist );
	var dz = !move_z ? 0.0 : RandLerp( -move_dist, move_dist );


And then replace the -move_dist values with 0, like this:

code:
function MoveObject( obj, move_dist, move_x, move_y, move_z )
{
	var dx = !move_x ? 0.0 : RandLerp( 0, move_dist );
	var dy = !move_y ? 0.0 : RandLerp( 0, move_dist );
	var dz = !move_z ? 0.0 : RandLerp( 0, move_dist );


Then I think it will have the directional behavior that you're asking about.

- 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)
5416.32 In reply to 5416.31 
Cool, that works like a charm!

Just what is the syntaxe for put
the ancient code as "quote" for remember the next time is i want to change it ?

Unlucky there is not notation in this one file but seeing in other JS I Suppose that is "//" ? ;)
  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:  ed (EDDYF)
5416.33 
For anyone doing these kinds of random, but structured "particles" on a regular basis, take a look at Element 3D.

Element 3D is a plug-in for Adobe After Effects. It's a particle array system using 3D objects.

I've been using it with my MoI models exported as OBJ.

Although it handles arrays, it is used a lot for animating just a single 3D model in a faster, simpler way than using a full blown 3D system like Cinema 4D.

After Effects is of course primarily for motion graphics, but because it has so much overlap with Photoshop it gets used for still images as well.

Ed


http://www.videocopilot.net/tutorial/3d_replicator/sd/

http://www.videocopilot.net/tutorial/screen_animations/

http://www.videocopilot.net/help/element/tutorial/basic/animation_engine/
  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.34 In reply to 5416.32 
Hi Pilou, you can "comment out" script code by either putting // characters at the start of each line, like

// code here
// code....
// etc....

or also you can do a whole block by putting /* */ around the whole block like:

/*
a bunch of code here
etc...
etc...
*/

- 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:  BurrMan
5416.35 In reply to 5416.30 
"""""""""""The year is 2035 and the world is over populated.............this is Sky City 001.""""""""""

Your not just a table guy with helpers... You have the artist thing. I love your side stuff. :o
  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.36 In reply to 5416.34 
thx!
for the /*a bunch of code here etc...*/
That will be in another life :)
---
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:  DannyT (DANTAS)
5416.37 In reply to 5416.35 
Thanks Burr,

It was just something that popped up in my head when Michael released the script, it didn't take long and imagine what it would take to do that without the Randomize script.

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:  moritaka
5416.38 
It's a lot of fun.
I was able to easily create.


Attachments:

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

Message 5416.39 deleted 23 Sep 2012 by MORITAKA

Previous
Next
 From:  TpwUK
5416.40 In reply to 5416.38 
I like this one, Moritaka .... Well done

Martin
  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.41 In reply to 5416.40 
Thanks for the update Michael!

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

Previous
Next
 From:  Volksgasmaske
5416.42 In reply to 5416.41 
What a great script.
Thank you very much for sharing it.

Best regards.

EDITED: 25 Sep 2012 by VOLKSGASMASKE

  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.43 
Lerp sounded so strangely familiar, I had to look it up:

(The pear psylla insect is such a pest.)

From Wikipedia:
"Lerp may refer to
Lerp (biology), a structure produced by larvae of psyllid insects as a protective cover.
Lerp (computing), a quasi-acronym for linear interpolation in computing and mathematics."

http://msdn.microsoft.com/en-us/library/windows/desktop/bb509618(v=vs.85).aspx
  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:  raytownmike (HOPPER)
5416.44 
I can't seem to get this script to work. Any thoughts installation etc..?
Message reads: Can't find variable:Randomize
  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:  raytownmike (HOPPER)
5416.45 In reply to 5416.5 
I can't seemed to get the Randomize script to work. Message reads: Can't find variable: Randomize like 1 1:>>Randomize

Any thoughts what I maybe doing wrong here. I believe I installed it correctly.
  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.46 
If it's this one ?
No problem for me! (works also fine with curves)
Maybe you must post your 3dm file!

EDITED: 12 Sep 2016 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
5416.47 In reply to 5416.44 
Hi Mike, re:

> I can't seem to get this script to work. Any thoughts installation etc..?
> Message reads: Can't find variable:Randomize

Please double check the instructions here at FAQ #1.

That error message means that MoI tried to run the contents of your shortcut key command text as direct immediate script code. It will do that if it could not find a file of that name in the commands folder, or if you have set up the shortcut key command with a "script:" prefix on it (like if you shortcut key command is set up as script:Randomize instead of just plain Randomize).

If you have just plain Randomize as the shortcut key command then it means that the Randomize.js and Randomize.htm files are not getting copied into the commands folder, so double check that and restart MoI after you have copied them.

- 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:  raytownmike (HOPPER)
5416.48 In reply to 5416.47 
I have installed these before and I still can't get this one to work. Most of the installs I have also show up in the Ext. scripts list buy not this one. I have had at times some do this were I can't get them to show up. There isn't platform issues is there?

EDITED: 13 Sep 2016 by HOPPER

  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.49 In reply to 5416.48 
Hi Mike, nope no known platform issues, I just gave it a check over here on my own Mac to make sure.

Can you please show me a screenshot of where you have placed your Randomize.htm and Randomize.js files, and also a screenshot of what you have set up for your keyboard shortcut?

One thing to note is that with Safari, when you download the Randomize.zip file, it automatically unzips it into a folder named Randomize with the 2 files contained within that folder. You've got to go into that folder and move those 2 files over, if you move just the entire folder so the whole Randomize folder is a nested folder underneath MoI's commands folder that won't 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:  raytownmike (HOPPER)
5416.50 In reply to 5416.49 
Here is the path and short cuts. A lot of commands are floating and not nested. Should it show up in my Ext. scripts list?
Image Attachments:
Size: 34.3 KB, Downloaded: 20 times, Dimensions: 470x162px
Size: 60.2 KB, Downloaded: 18 times, Dimensions: 973x194px
  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-10  11-30  31-50  51-66