Ruby Script to import Indigo Materials in Sketchup model

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
Post Reply
1 post • Page 1 of 1
Automation
Posts: 9
Joined: Tue Feb 19, 2013 4:37 am

Ruby Script to import Indigo Materials in Sketchup model

Post by Automation » Mon Mar 03, 2014 5:30 am

Hello *,

I try to import Indigo Material Settings via ruby console into an existing Sketchup model.
I want to to this to automate this activity.

But it does not work.

Following the sample code:

@sm=IndigoMaterial::new(Sketchup.active_model.materials[0])
imi=IndigoMaterialImporter::new("R:/IndigoRT/Material/BeechWood.igm")
imi.load_igm("R:/IndigoRT/Material/BeechWood.igm",@sm)

I hope, someone can help.

Regards

Automation

Post Reply
1 post • Page 1 of 1

Who is online

Users browsing this forum: Google [Bot] and 2 guests