Creating custom colours (styles) on start-up

Next
 From:  bigseb
8359.1 
Not sure if this has been covered before but I would like to change the available colours or styles from the default



to a custom



How do I do that?

Thanks.


--


Sebastian

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
8359.2 In reply to 8359.1 
Hi Sebastian, you can do that by setting up a 3DM file that has the styles how you want them for the default, then specify that file as the startup template file under Options > General > "Template file".

Then styles and initial view positions will come from that file when you start up MoI or do a File > New.

- 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:  bigseb
8359.3 In reply to 8359.2 
Awesome. Thanks.


--


Sebastian

  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
8359.4 
Question on displaying the full path name to the Template File: (I've had to hunt for it in the past)

My template file, (Windows7), is located at c:\Users\*****\Appdata\Roaming\Moi
Under Options General, only the Compact path is displayed: C:...\MoiColorSave2015cm.3dm (my name for the file)
The relevant code for the path seems to be lines 31 and 215 of the file "GeneralOptions.htm" in the MoI ui directory.
I increased line 215 from 18em to 36em, which adds whitespace to the path box.
I increased the number in line 31 from 29 to 64, which only very slightly increased the path shown.
Line 31 refers to ".getCompactPath( filename, 29 );"

Is there an alternative to ".getCompactPath" ?
(I tried .getPath and .getFullPath, but they did not work.)

- Brian

Or is there some way to display the full path name to the Template File?
  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
8359.5 In reply to 8359.4 
Hi Brian, you can just use the filename directly instead of calling .getCompactPath().

Current code is like this:

code:
				var filename = moi.geometryDatabase.startupTemplate;
				if ( filename != '' )
					g_TemplateShortName = moi.filesystem.getCompactPath( filename, 29 );


You'd want to switch it to this instead:

code:
				var filename = moi.geometryDatabase.startupTemplate;
				if ( filename != '' )
					g_TemplateShortName = filename;


Hope that does what you wanted!

- 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
 From:  bemfarmer
8359.6 In reply to 8359.5 
Thank you very much Michael.

I also changed line 251 from 18em to 36em

(The path I gave above was not quite correct :-)

- 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
 

Reply to All Reply to All