Color Gradient script?
 1-10  11-30  31-50  51-70  71-90  91-92

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

Previous
Next
 From:  Frenchy Pilou (PILOU)
9676.54 In reply to 9676.51 
<<> 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.

Yes but i want keep that is on the screen and don't want close the actual file...
Just remake the original Style by default after any gradients

Maybe a script if you can't make an option

or a selection multiple for erase something large!


---
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.55 
...and how works the filter? (Ctrl + Click)

---
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:  Michael Gibson
9676.56 In reply to 9676.54 
Hi Pilou,

re:
> Yes but i want keep that is on the screen and don't want close the actual file...
> Just remake the original Style by default after any gradients

What about select what is on your screen, use Ctrl+C , then File>New, then Ctrl+V ?


re:
> ...and how works the filter? (Ctrl + Click)

That restricts object selection to only work on the filtered items. So for example if you set the filter on Style = Red, then when you click in the viewport (or do any selection action like Ctrl+A or whatever), only objects that have Style = Red assigned to them will be targeted for selection and any other objects not matching the filter will be skipped over.

- 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.57 In reply to 9676.56 
<< What about select what is on your screen, use Ctrl+C , then File>New, then Ctrl+V ?

Ok above + new file keeps the colors used for the objects created! Cool!

<< when you click in the viewport (or do any selection action like Ctrl+A or whatever)
it's that i had forgotten!

Ctrl + A ok, Rectangular Selection ok, Click on an object ok = selection following filters selected
but what do you mean by only "Click on the viewport" ?
---
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:  bemfarmer
9676.58 
Michael, These Gradient scripts will be very useful. Thank you.

I've added both scripts to Max's CustomUI extension, under the scripts icon

Maybe someone could to a nodeeditor version, and find additional ways to select the two initial colors.

- 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.59 In reply to 9676.57 
Hi Pilou,

re:
> Ctrl + A ok, Rectangular Selection ok, Click on an object ok = selection following filters selected
> but what do you mean by only "Click on the viewport" ?

Same as what you say there for "click on an object".

- 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.60 
Thank you Michael,

it is working now.

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.61 
Terrific of simplicity and very efficient!

---
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:  amur (STEFAN)
9676.62 
Working on a loxodrome sphere. :-)

loxodrome

The gradient script is awesome!!!

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.63 
Hi all,

Maybe some of you have noticed that the superb Gradient script uses 0-100 percent for hue (H)
instead of the commonly used 0-360 degrees for hue (H). So, to choose colors from a reference
image or palette you may do the following, as I currently do:

Look at an online site for RGB to HSV or HSB conversion or check the color palette in your Graphics
Editor and choose the HSV or HSB color there.

Then simply calculate the correct values for Hue = n for the script like: n/360*100 wich gives you for
example 70.83. In order to input these values in the script I have changed line 19 and 30 in the .html file to:

'NumericInput' instead of 'IntegerInput' and add 'style="decimalPlaces:2"' behind 'default="100"'

Hope you find this little tip useful.

Regards
Stefan

EDITED: 14 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.64 In reply to 9676.63 
Can you post the file modified ? That will avoid some trivial errors! :)
  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.65 
Hi Pilou,

not sure if this is a good idea ... but here is a picture.

modified-html

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.66 In reply to 9676.65 
OK that is more clear! :)

---
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:  Michael Gibson
9676.67 In reply to 9676.63 
Hi Stefan, I've updated the attached versions to take a hue value between 0 and 360 so you can use these ones without doing any converting.

- Michael

EDITED: 15 Feb 2020 by MICHAEL GIBSON

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:  amur (STEFAN)
9676.68 
Hi Michael,

*thanks a lot, much appreciated!!!* :-)

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.69 
Must make a new translation! :)
---
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.70 
And of course with exactly same regulates!

---
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-10  11-30  31-50  51-70  71-90  91-92