Color Gradient script?
 1-8  9-28  29-48  49-68  69-88  89-92

Previous
Next
 From:  amur (STEFAN)
9676.29 
Hi Brian,

the computed gradient colors must be in the browser, but what I mean only
after selecting the desired objects and once the script is run on these objects.

Because I think this would make it easier to manage the job better, when using
multiple gradients for multiple objects(groups).

And the computed styles must be present in the .3dm file, me thinks, because
when one wants later reuse the file, say for 3D printing etc. the colored objects,
it needs these styles.

The option, you mentioned, for deleting them could be an option of course.

Best regards
Stefan
  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
9676.30 
So color styles can be added to MoI, and are lost upon re-opening MoI, unless the MoI screen is saved as a .3dm file to the Moi "Template file" in AppData/roaming/Moi.
The current Template file location is shown in Options/General (?)

Saving Gradient colored objects to a .3dm file, in some other place, preserves their color style in the .3dm file.
Upon re-loading to MoI, the Gradient colors are added back to MoI's style menu, but not necessarily permanently.

- Brian
  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
9676.31 In reply to 9676.30 
Hi Brian, yes that's correct, the styles list is saved to a .3dm file and will be restored when loading the .3dm file back again. If a template file is set, the styles in it will be used for the initial styles list when MoI starts up and when you do a File > New.

If you build up a set of styles that you want to save for later use, you should save to a .3dm file which will then contain them. That's the same as if you build up set of objects that you want to work on more later on. When you create an object it does not stay around permanently, they are saved to and loaded from files.

- 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
9676.32 In reply to 9676.1 
Hi Stefan, give the attached plug-in a try.

For v4, install it into the MoI appdata commands folder and then set up a keyboard shortcut for CreateGradientStyles to trigger it.

It depends on objects being named and applies the gradient in the alphabetic order of the object names.

- 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)
9676.33 In reply to 9676.32 
That works...but each objects must have a different names!
This is not very easy! :)

  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
9676.34 In reply to 9676.33 
Hi Pilou,

re:
> That works...but each objects must have a different names!

Yes, I asked about that earlier in the thread here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9676.5

Stefan replied that was how it should work:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9676.6

- 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)
9676.35 In reply to 9676.34 
Will be a nightmare for the Mandala above no ?
http://moi3d.com/forum/index.php?webtag=MOI&msg=9676.25

Filling random a mandala is more easy than a gradient one! :)

EDITED: 10 Feb 2020 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
9676.36 In reply to 9676.35 
Hi Pilou,

re:
> Will be a nightmare for the Mandala above no ?

Well as I wrote above (http://moi3d.com/forum/index.php?webtag=MOI&msg=9676.5):
"That seems kind of cumbersome but it could be possible to set it up that way if that would work best for you."

That's why I made sure to double check that was how it was supposed to work.

Yes, I'm not really sure what a gradient on the Mandala is supposed to look like. Maybe something based off of the fragment's position... ?

- 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
9676.37 In reply to 9676.35 
Hi Pilou, here's a variation that might be more interesting to you - this one takes a path curve and makes the gradient by taking the center of the object's bounding box and seeing how far along the curve that is.

Select objects to colorize, then run the command, then pick the path curve and then set start/end color 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

Previous
Next
 From:  amur (STEFAN)
9676.38 
Thank you so much Michael, much appreciated!!!

But I must admit I don't know how to set up a correct shortcut to trigger the command. :-(

I remember that from v3 with other scripts, but now with v4 I am lost, even if the UI is the same.

Best regards
Stefan
  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)
9676.39 In reply to 9676.37 
Now that is Ultra cool! Bravo!

  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)
9676.40 
Does it possible to have something for restore the Default Style that we have when we launch Moi ?
(seven colors Black, Red, Orange, Green , Cyan, Blue, Magenta)

Because when there some Gradients done, erase one by one is some painful ;)
We have Add New Style, Edit Style, Add Default Style
Add Edit Delete Up Down

but not Delete All (so Default seven colors)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel 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)
9676.41 
For automatic Mandalas

Make any close curves intercrossed
Select All Transform / Planar
Boolean Merge
= each surface are separated so cool for colorisation!

And French Version of the CreateGradientStylesAlongPath ;)
http://moiscript.weebly.com/uploads/3/9/3/8/3938813/creategradientstylesalongpath_vf.zip

http://moiscript.weebly.com/deacutegradeacutes.html

EDITED: 11 Feb 2020 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:  amur (STEFAN)
9676.42 
Hi Pilou,

A nightmare? It depends on how you plan the above artwork, I have shown.

While it is time consuming, it is easy for me to give each of the (more than 1500)
elements a proper alphabetically sorted name, based on 5er codegroups, used as prefix,
and which are normally used in cryptographic circles.

So let's say I would name the elements of an inner ring consisting of say 100 elements,
I would name the first element something like aaaaa_innercircle, second element aaaab_innercircle
and so on. An outer leaf could for example start with eeeea_outerleaf etc. And since the above
complex artwork is not in any particular order when importing I would also use a second instance
of MoI running so that I can copy and paste groups, name the elements, prior colorizing in the
second instance of MoI. ;-)

I think this is not to difficult but a very flexible workflow and the advantage with 5er codegroups
is that they can be easily created and more than 11 Million combinations are possible ... :-)

Regards
Stefan
  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:  amur (STEFAN)
9676.43 
Hi Pilou,

a little quick and easy test, but you get the idea.

quick-gradient-test

Regards
Stefan
  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)
9676.44 In reply to 9676.43 
Yep but now totally useless with the last opus of Michael! ;)

and no need to give names! ;)
That's Magic!



Of course curves, edges... can be hidden folowing result wanted...

EDITED: 11 Feb 2020 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:  amur (STEFAN)
9676.45 
Hi Pilou,

Michael did an outstanding job, by providing two solutions! :-)

So now we have total flexibility. :-)

But don't forget when not giving names to objects IIRC it can
happen in some 3D apps, you import to, that they get confused
with color assignments, when no object names are given.

Regards
Stefan

EDITED: 11 Feb 2020 by STEFAN

  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)
9676.46 
@ Michael How gradient numbers colors itselve are made following the path ?
Following the number of objects selected or following an arbitrary number (eg 100) ?

EDITED: 11 Feb 2020 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:  amur (STEFAN)
9676.47 
Hi Pilou,

I find it excellent to have the named objects option, besides paths,
to create then solids for 3D printing etc. :-)

test1

Regards
Stefan
  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)
9676.48 In reply to 9676.47 
Yes naming can be useful for particular material things! :)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel 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:  1-8  9-28  29-48  49-68  69-88  89-92