Linear array + scale array
All  1-15  16-20

Previous
Next
 From:  Frenchy Pilou (PILOU)
5595.16 In reply to 5595.15 
In fact that work if you draw objects like this :)
Object a, Point a, Object B, Point B, etc...even irregularly spaced !
Then use the Array Dir :)
Then ShiftArray

Very cool! !) So my line above will works too! My error was to draw the points after the objects!!!



EDITED: 13 Dec 2012 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:  Frenchy Pilou (PILOU)
5595.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

Previous
Next
 From:  Michael Gibson
5595.18 In reply to 5595.12 
Hi DesuDeus, here I've attached a kind of generalized array plug-in called ScriptArray, hopefully it may be of use for this kind of object generation.

This version does not have any UI with it at all, you change parameters in it by editing the command script itself. This goes into the \commands sub-folder just like other commands, it's just that it won't show any UI in the upper-right area when it is running. Also note that MoI caches the contents of command files in memory the first time that it is run, so if you repeatedly edit the file you will need to either shut down and restart MoI on each run after an edit, or save to a new file like ScriptArray2.js, ScriptArray3.js, etc... In the next v3 beta there is a flag that you can set in moi.ini to turn off script caching though which will help with this kind of thing.

With this version you edit the behavior by editing the code at the top of the script file. This version creates copies more like a regular array command, you do not need to create an array with point objects in it like the previous ScaleArray / ShiftArray commands.

You control the number of copies generated by editing the line at the top that says:

code:
var g_NumCopies = 40;


To control the spacing, scaling, and rotation there are 3 functions at the top of the file - UpdateMoveDeltas(), UpdateScaleFactors(), and UpdateRotateAngles() - these are called for each copy of the array and they are passed a point with .x .y .z values that can be modified, reset, randomized, calculated by some math forumla, ... whatever you want.

Currently as a demo it's set up to make 40 copies, and it gradually increases the movement in x for the first 20 copies, then for the second 20 copies gradually reduces it. It increases scaling in x by 0.1 for each step for the first 20, after which it decreases x scaling and starts to increase y scaling, and it rotates around the z axis by an increasing increment of 10 degrees for each step up to 20 then decreasing it. This generates output like so:




So this should help allow for whatever kind of array behavior that you can dream up, you can gradually increase and/or decrease different values, randomize just certain values, etc... hopefully it should serve as a template for generating all kinds of different array effects.

Hope this helps!

- 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)
5595.19 In reply to 5595.18 
Another cool variation of the ScaleArray !

You must put it also inside a "scripts" folder if this one don't exist ? (that I made before reding your text :)

Just wait a little time after the start of the Script !

EDITED: 13 Dec 2012 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
 From:  Michael Gibson
5595.20 In reply to 5595.19 
Hi Pilou,

> You must put it also inside a "scripts" folder if this one don't exist ?

It should go in the \commands folder.

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1-15  16-20