Color pallete for Dark Theme

Next
 From:  bemfarmer
10902.1 
Are there any recommended color palettes for MoI Dark Theme.
I am liking some lighter colors, which may be Pastel or Pale 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
10902.2 In reply to 10902.1 
Hi Brian, do you mean for object styles?

If you want to make the regular style colors to be more muted in the dark theme, try making a new theme based off of the Dark theme and edit Viewport > Brightness to something like 0.8 or 0.7 .

- 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:  bemfarmer
10902.3 In reply to 10902.2 
Thank you Michael.
I meant "styles", but always call them colors.

I like the viewport brightness at 1.0, (default).

- 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:  bemfarmer
10902.4 
Hi Michael,
Given a hexadecimal list of say 21 styles, along with their names, is there a simple way to add the styles to MoI, to a file "mycolors.3dm", with a "simple" script?

For example, there is a selection for "Add Default Styles" in the Style Tools menu.

(I can of course add them one by one, with the Style Tools menu.)

The few styles which caught my eye recently turned out to be Layer colors, from imported stl(?) files, which may have been created in Fusion 360.
I finally made a hexadecimal list of some 21 "pastel-ish" styles ( layer colors).
(I tried out the Fusion 360 basic, limited, free edition recently, but it seems very difficult to use, so far, and has very limited export types available for the free edition.)
(I tried out the Shaper3D program recently, which seemed more user friendly, roughly sort of MoI-ish user interaction)

ps The https://www.color-name.com/ website permits a hexadecimal color code (style) to be entered, and returns the Name of a color, and even the closest websafe equivalent.

- Brian
(It is not worth spending too much time on this topic...:-), I'll probably end up entering the styles one by one...
  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
10902.5 In reply to 10902.4 
Hi Brian, a script can add a style using:

code:
function AddStyle( color, name )
{
    var style = moi.geometryDatabase.addStyle();
    style.color = color;
    style.name = name;
}

AddStyle( 0xFF0000 /* RRGGBB */, 'MyRed' );

- 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:  bemfarmer
10902.6 In reply to 10902.5 
Wow, that was a quick response!
Thank you Michael.
I'll try it out...

- 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
 From:  bemfarmer
10902.7 In reply to 10902.6 
As a test, highlight the following code, and in MoI do: TAB , paste , return
(This adds the code to the command bar, and then runs it.)
This will very quickly add the 5 styles to the style menu.
This was a test. I'll have to think more about what order to put the styles in...( and what styles are desired.)

code:
function AddStyle( color, name )
{
    var style = moi.geometryDatabase.addStyle();
    style.color = color;
    style.name = name;
}

AddStyle( 0xAFC4DD /* RRGGBB */, 'Light Steel Blue' );
AddStyle( 0xB4A683 /* RRGGBB */, 'Grullo' );
AddStyle( 0xA0A0A0 /* RRGGBB */, 'QuickSilver' );
AddStyle( 0xFFCACA /* RRGGBB */, 'Light Red' );
AddStyle( 0x404040 /* RRGGBB */, 'Black Olive' );


And if the new styles are to be reloaded, save the blank MoI as a .3dm file with an appropriate name to be the new template file (under Options, General).

- Brian

EDITED: 11 Dec 2022 by BEMFARMER

  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