Color Gradient script?
 1-13  14-33  34-53  54-73  74-92

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

Previous
Next
 From:  Frenchy Pilou (PILOU)
9676.49 
Little bug for CreateGradientStyleAlongPath

I wanted to see what was the result for only one object selected! :) If it will be start color or end color...
My object is a simple Sweep

  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.50 In reply to 9676.38 
Hi Stefan,

re:
> 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.

Did you get this figured out?

To set up the shortcut key, go to Options > Shortcuts, then click the "Add" button to add in a new one.

A dialog box will pop up that says "Press shortcut key:" - now you need to press the key combination that you want to use for the shortcut key. So for example if you want it to be triggered with Ctrl+G hold down the Ctrl key and push G, the dialog should then show "Ctrl+G" in it. Then push OK.

Then click in the right-hand "Command" column for the new entry in the list and put in the command you want triggered. For these new ones the command would be CreateGradientStyles or CreateGradientStylesAlongPath.

- 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.51 In reply to 9676.40 
Hi Pilou,

re:
> 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)

Yes, using File > New will do that.

- 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.52 In reply to 9676.46 
Hi Pilou,

re:
> @ Michael How gradient numbers colors itselve are made following the path ?
> Following the number of objects selected or following an arbitrary number (eg 100) ?

It is assigned by taking the center of the object's bounding box and then finding the closest point on the path curve to that center point.

Then the parameter value of that point along the curve becomes the parameter for the gradient, with the start of the curve being the start color, blending up to the end of the curve being the end color.

- 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.53 In reply to 9676.49 
Hi Pilou,

re:
> I wanted to see what was the result for only one object selected! :) If it will be start color or end color...
> My object is a simple Sweep

Yes only one object is not supported for the gradient. So don't do that. ;)

- 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-13  14-33  34-53  54-73  74-92