Changing Skindigo's Default Export Path?

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
Post Reply
4 posts • Page 1 of 1
kmjs
Posts: 3
Joined: Tue Dec 15, 2009 6:52 pm
Location: Long Beach, CA
Contact:

Changing Skindigo's Default Export Path?

Post by kmjs » Sat Jan 23, 2010 5:56 am

I'd like to change the default render location to a drive other than my primary OS, to prolong the life of my SSD array and also to take advantage of another more powerful raid array.

I'm working on a rig with the OS install on two SSD (Solid State if anyone is confused :mrgreen:)drives in raid 0 - my goal is to reduce wear and tear on the drives by changing the location that Skindigo renders to - my default being (Win7):

Code: Select all

Current default:
C:\Users\~myname~\AppData\Roaming\Indigo Renderer
Goal default:
Q:\3d\Indigo\

So, I've been poking around everywhere I could think, and found a few clues in the ruby code-
From IndigoRenderSettings.rb:

Code: Select all

381: SkIndigo.get_indigo_app_data_path
382: image_path=File.join(path,"renders")
I'm guessing this is for the image renders folder, and not the folder that the default.igs gets generated in - however, the get_indigo_app_data_path is what I'm after... Due to my unfamiliarity with the code I wonder if I'm even barking up the right tree - is the get_indigo_app_data_path something handled by the Indigo program and not the Skindigo Plugin? (btw Whaat if you read this, you are my hero.)

Thanks! For flavor here's an image of what I'm working on.
splash.jpg
3-5 centimeter diameter water droplet scaled up (accidentally) to 30 feet in diameter. The scale difference added an interesting glass-like quality.
splash.jpg (77.7 KiB) Viewed 1914 times

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re: Changing Skindigo's Default Export Path?

Post by Doug Armand » Sat Jan 23, 2010 6:13 am

kmjs wrote:I'd like to change the default render location to a drive other than my primary OS, to prolong the life of my SSD array and also to take advantage of another more powerful raid array.

I'm working on a rig with the OS install on two SSD (Solid State if anyone is confused :mrgreen:)drives in raid 0 - my goal is to reduce wear and tear on the drives by changing the location that Skindigo renders to - my default being (Win7):

Code: Select all

Current default:
C:\Users\~myname~\AppData\Roaming\Indigo Renderer
Goal default:
Q:\3d\Indigo\

I've been saying the same thing myself - and for the same reason I also use a SSD drive as a boot and it is really irritating :evil:

Can I suggest you post a request for this in this thread:
http://www.indigorenderer.com/forum/vie ... f=5&t=8023

edit: btw nice image :D
Doug

Doug Armand

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Re: Changing Skindigo's Default Export Path?

Post by Whaat » Sat Jan 23, 2010 1:18 pm

Hi!

What you are looking for is in the method 'SkIndigo.export' in the file 'skindigo.rb'

There is a snippet of code like this:

Code: Select all

if not export_path  
		last_path=is.last_path  #returns the last path that the model was exported to
		if (last_path==nil) or (!FileTest.exist?(last_path))
			app_data=SkIndigo.get_indigo_app_data_path
			export_path=File.join(app_data,"default.igs")
			#export_path=File.join(File.dirname(indigo_path),"default.igs")
		else
			export_path=last_path
		end
	end
Change the line to this:

Code: Select all

export_path="Q:\\3d\\Indigo\\default.igs"

kmjs
Posts: 3
Joined: Tue Dec 15, 2009 6:52 pm
Location: Long Beach, CA
Contact:

Re: Changing Skindigo's Default Export Path?

Post by kmjs » Sun Jan 24, 2010 8:09 am

Whaat wrote: What you are looking for is in the method 'SkIndigo.export' in the file 'skindigo.rb'
...
Change the line to this:

Code: Select all

export_path="Q:\\3d\\Indigo\\default.igs"
Works like a charm - actually, better! You've cut my export time in half, and with simple meshes (~< 20megs) the time from Sketchup to Indigo is nearly instantaneous. Thanks Whaat!

For anyone else looking to implement the same hack on Skindigo 2.2.9, the code in question is at line 484.

ps. Doh! I totally missed skindigo.rb in the root plugin directory... (it should have been obvious when I couldn't find the methods the code was calling) I guess I have too many plugins, and it got lost in the ruby sea. Anywho, attached is a trial render with the adjusted code.
Attachments
ptm-53-rsx2-200CD@3.5.jpg
It's a little fuzzy since I forgot that earlier I opened the aperture up to an f4, and set the focus point to somewhere by the sink.
ptm-53-rsx2-200CD@3.5.jpg (378.75 KiB) Viewed 1857 times

Post Reply
4 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 186 guests