Multiple symmetry update
 1-14  15-34  35-39

Previous
Next
 From:  Frenchy Pilou (PILOU)
7888.15 
If you take view Points and move points history is broken with this Script : that's normal ?

EDITED: 23 Mar 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
7888.16 In reply to 7888.15 
Hi Pilou,

> If you take view Points and move points history is broken
> with this Script : that's normal ?

Well it depends on which particular curves you were editing. You should be editing the original curves and then all the generated ones will update. History will only be broken if you edit one of the generated curves instead of the original one, is that what you were trying?

Here is an example of editing the control points of the original curve:



- 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)
7888.17 
Sorry I don't know what i made: all works fine now!
Maybe I have pressed the History button in false position after the MirrorRotateHistoryArray...

  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)
7888.18 
What about the number of copy rotation itself ?
If I modify it (with a text editor) that change the Angle, but not the apparently original 12 result !
Say I want 5 result for example???
  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
7888.19 In reply to 7888.18 
Hi Pilou,

re:
> What about the number of copy rotation itself ?

There's one line of code that controls that, on line 26:

code:
	var numcopies = 6;


If you want to have 5 copies around the circle edit that line to say this instead:

code:
	var numcopies = 5;



re:
> If I modify it (with a text editor) that change the Angle

Don't modify the angle, modify the line above the angle that sets the number of copies. The angle is automatically computed based on the number of copies.


> Say I want 5 result for example???

You mean 5 copies rotated around and not any mirroring? That's what the first script in this thread did, it didn't do the mirroring step, it did rotation only, so try that. It's in this same thread here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7888.7

If that's not what you're trying to do could you try to describe it a bit more?

- 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)
7888.20 In reply to 7888.19 
Perfect! (if we accept to have the Editor Text open in the same time! ;)

All that will be not necessary when Object Components System will be made! :)
I have my 5 objects!

EDITED: 24 Mar 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:  Frenchy Pilou (PILOU)
7888.21 
Infinite gothic rosace play! :)

---
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)
7888.22 
Infinite gothic rosace play! :)
Possibility to move the points of the first curve(s) is very practical!

  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:  TOM (SIRTOM)
7888.23 In reply to 7888.22 
Pilou is the king of experimentation ! ;-)

Should be possible to use this script as a "Guilloche Generator" like this tool here :

http://2008.sub.blue/projects/guilloche.html


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

Previous
Next
 From:  Frenchy Pilou (PILOU)
7888.24 In reply to 7888.23 
Don't miss by the same author Tom Beddard
the incredible and very easy Fractal Lab Online!
http://hirnsohle.de/test/fractalLab/
my test ;)




  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:  TOM (SIRTOM)
7888.25 In reply to 7888.24 
Beautifully amazing !
  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:  TOM (SIRTOM)
7888.26 
Hi.

This nice script works with curves but not with solids generated form that curves.
Is it possible to expand the script so it will work with solids, too ?
  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
7888.27 In reply to 7888.26 
Hi Tom, it might depend on what particular command or process you use to create the solids from the curves.

Can you give some more specific workflow for how your solid is being constructed?

- 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:  TOM (SIRTOM)
7888.28 In reply to 7888.27 
First, I draw the curves.
Then, I create solids out of them with loft or network.

As I am designing a symmetrical object, it is much faster to use a script
than apllying the symmetry command several times.
  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
7888.29 In reply to 7888.28 
Hi Tom, can you post an example file that has one of your curves that you are replicating and then using Loft and Network on?

I just did a quick test over here, and I was able to use the symmetry script to generate curves, then did a loft through those curves and it is updating fine for me when I edit the original curve.

- 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:  TOM (SIRTOM)
7888.30 In reply to 7888.29 
Hi Michael,
Here an example with network (3 repetions / arrays)

The script runs with the curves but it does not multiply the network.

EDITED: 30 May 2016 by SIRTOM

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

Previous
Next
 From:  Michael Gibson
7888.31 In reply to 7888.30 
Hi Tom, thanks for the example, sorry I didn't quite understand what you were trying to do before.

The script will need to be modified to work on things other than curves, it currently only collects curves to replicate just because that's what you originally described as what you were trying to do.

To make it work on any kind of object, edit line 13 of the file MirrorRotateHistoryArray.js which currently has this:

code:
	var curves = moi.geometryDatabase.getSelectedObjects().getCurves();


Change it to remove the ".getCurves()" part, so that line should look like this instead:

code:
	var curves = moi.geometryDatabase.getSelectedObjects();


With that line changed, it should then work to replicate any kind of 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:  TOM (SIRTOM)
7888.32 In reply to 7888.31 
Hi Michael, very cool ! I had thought thaht it could be done by changing just
one term. merci !
  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:  mkdm
7888.33 In reply to 7888.31 
Hi Michael,

Based on your previous suggestions, i wrote a little variant of your plugin, that supplies a minimal UI.
Its javascript code is not very elegant but it seems to work.

Using its UI it's now possible to choose the working plane and if or not apply the mirror command.
If the selected mirror axis is incongruous in relation to the working plane, the script will use a default axis for that particular working plane.

I tried to write a version that could show a preview before commit the results,
but without success.

I think the problem is that the entire process it's not made by a single factory command, but by multiple commands.

Could you please suggest an easy way to achieve this goal ?

Thank you and have a nice day !

Marco (mkdm).

Image Attachments:
Size: 583.8 KB, Downloaded: 61 times, Dimensions: 1915x1033px
  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
7888.34 In reply to 7888.33 
Hi Marco, that's a nice version!

To make a version that would do a preview, you would need to remove the current WaitForDialogDone() event loop at the top of the function and instead make your own event loop (look inside WaitForDialogDone.js for an example), and when any of your UI controls triggers an event you'd need to call factory.cancel() on any factories that you have created.

You would probably want to restructure the code to do that, like keep a list of current factories in a global variable, and move the object generation code into its own separate function so you can call it more easily from different locations because you'll also want to generate things before you go into the event loop so that the use sees the initial result using the initial default values.

- 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:  1-14  15-34  35-39