Creating custom colours (styles) on start-up

 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