Sketchup exporter script

Hello all.

I have cleaned up and tested my Sketchup export script over the weekend
and put it up on Francesco's wiki for download:

http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad

The wiki page contains all the documentation there is for the moment but
since it does not offer a great number of options it's use should be straight
forward.

Happy testing,

Thomas

Excellent Thomas,

A very useful addition to the Radiance exporter toolset!
It even worked on Linux, running SketchUp through Wine :slight_smile:

And thanks for your great documentation page.

F.

-----Messaggio originale-----

···

Da: [email protected] per conto di Thomas Bleicher
Inviato: dom 28/10/2007 18:15
A: Radiance general discussion
Oggetto: [Radiance-general] Sketchup exporter script

Hello all.

I have cleaned up and tested my Sketchup export script over the weekend
and put it up on Francesco's wiki for download:

http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad

The wiki page contains all the documentation there is for the moment but
since it does not offer a great number of options it's use should be
straight
forward.

Happy testing,

Thomas

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

Cool! When I find some time to breathe, I'll have to take a look at it!

Randolph

···

On Oct 28, 2007, at 11:15 AM, Thomas Bleicher wrote:

Hello all.

I have cleaned up and tested my Sketchup export script over the weekend
and put it up on Francesco's wiki for download:

http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad

The wiki page contains all the documentation there is for the moment but
since it does not offer a great number of options it's use should be straight
forward.

Happy testing,

Thomas

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Unfortunately some show stopper bugs were present in this version,
especially for those using it on Windows. I've fixed a few things and
uploaded a new version to the wiki site.

If you plan to use the script on Windows please download the new version!

Even if you're not using Windows you should download the update because
it now exports the north orientation of the scene correctly.

Regards,
Thomas

···

On 28 Oct 2007, at 18:15, Thomas Bleicher wrote:

Hello all.

I have cleaned up and tested my Sketchup export script over the weekend
and put it up on Francesco's wiki for download:

http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad

The wiki page contains all the documentation there is for the moment but
since it does not offer a great number of options it's use should be straight
forward.

Happy testing,

Thanks a lot Thomas for making the script Windows compatible.! It works
really nicely on my laptop.

Christoph

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: Tuesday, October 30, 2007 4:20 PM
To: Radiance general discussion
Subject: Re: [Radiance-general] Sketchup exporter script

On 28 Oct 2007, at 18:15, Thomas Bleicher wrote:

Hello all.

I have cleaned up and tested my Sketchup export script over the
weekend and put it up on Francesco's wiki for download:

http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad

The wiki page contains all the documentation there is for the moment
but since it does not offer a great number of options it's use should
be straight forward.

Happy testing,

Unfortunately some show stopper bugs were present in this version,
especially for those using it on Windows. I've fixed a few things and
uploaded a new version to the wiki site.

If you plan to use the script on Windows please download the new
version!

Even if you're not using Windows you should download the update because
it now exports the north orientation of the scene correctly.

Regards,
Thomas

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hello All,

Thomas you have made an excellent contribution to the radiance community
with your SketchUP exporter. I assume this script would also work with
the free Google Version of SketchUP as well. That software was of
limited use to radiance modelling as it did not have the 3DS converter
available in the PRO version.

A point here, for the Google SketchUP (free version) users would be for
the user to manually modify the 'sky' file for location and orientation
as that option works differently from the PRO version of SketchUP.

To this effect a couple of extra comments in the 'sky' file for the
novices would be useful.

With regards to accuracy of modelling using SketchUP, simply use the
mouse to indicate direction and then enter the distance with the
keyboard. This allows wonderful unit conversions on the fly during data
entry. For example say your units are in metres and you want an offset
of 50mm, type 50mm or 2" and SketchUP will do the rest! It even
understands entries such as 2",100mm for a rectangle.

Regards

Terry Mc Minn
Faculty of Built Environment, Art and Design
Curtin University of Technology
GPO Box U 1987 Perth 6845 Western Australia
Email: [email protected]
CRICOS Provider Code: 00301J

Hi Thomas,

Thanks for making the SU exporter plugin available -- I just
tried it out on a fairly complex model. The default mode seems
to be to export surfaces by material colour rather than layer
name (unless I've missed something).

It's neither. The one and only mode exports to files based on the
group or component instance name which is generated if it's not set.

This allows you to use the Sketchup hierarchy to model efficient
Radiance scenes with '!xform'. At the moment only components can
be reused but Sketchup keeps track of identical groups as well;
I just can't get this information from the API.

Is there (or will there be) an option to export surfaces by
layer name rather than material colour?

Since you already got another one voting for it I'll look into it
at the weekend. Should be easy to do.

Thomas

···

On 1 Nov 2007, at 14:57, Mardaljevic John wrote:

Thanks again for the export script. The following was in Fransceco's wiki as a future feature (no pun intended)
<<replacement of component instances with pre-canned Radiance files>>

I hope this will enable the script's ability to handle artificial lighting. I have some ies fixtures i've used in some radiance renders I want to use in the Sketchup to radiance generated files. So far I've only the following method:
1 step converted ies to rad files
2 Use mkillum for a wrapper for fixture geometry
3 'update' the script generated files to search/replace a named scene 'place holder' with items 1 and 2.

Does this approach make sense? If there is a more straight forward way, please let me know.

Is there a straight forward way of handling instances > From: [email protected]> Subject: Re: [Radiance-general] Sketchup exporter script> Date: Tue, 30 Oct 2007 21:19:34 +0000> To: [email protected]> > > On 28 Oct 2007, at 18:15, Thomas Bleicher wrote:> > > Hello all.> >> > I have cleaned up and tested my Sketchup export script over the > > weekend> > and put it up on Francesco's wiki for download:> >> > http://www.bozzograo.net/radiancewiki/doku.php/input:exporters:su2rad> >> > The wiki page contains all the documentation there is for the > > moment but> > since it does not offer a great number of options it's use should > > be straight> > forward.> >> > Happy testing,> > Unfortunately some show stopper bugs were present in this version,> especially for those using it on Windows. I've fixed a few things and> uploaded a new version to the wiki site.> > If you plan to use the script on Windows please download the new > version!> > Even if you're not using Windows you should download the update because> it now exports the north orientation of the scene correctly.> > Regards,> Thomas> > _______________________________________________> Radiance-general mailing list> [email protected]> http://www.radiance-online.org/mailman/listinfo/radiance-general

···

_________________________________________________________________
Have fun while connecting on Messenger! Click here to learn more.
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger

Thanks again for the export script. The following was in Fransceco's wiki as a
future feature (no pun intended)
<<replacement of component instances with pre-canned Radiance files>>

I hope this will enable the script's ability to handle artificial lighting.

Yes. That's my lazy take on IES file support.

I have some ies fixtures i've used in some radiance renders I want
to use in the Sketchup to radiance generated files.
So far I've only the following method:
1 step converted ies to rad files
2 Use mkillum for a wrapper for fixture geometry
3 'update' the script generated files to search/replace a
  named scene 'place holder' with items 1 and 2.

Does this approach make sense? If there is a more straight forward
way, please let me know.

Search and replace could be done with replmarks. Use triangles
where you want your fittings, find the corresponding "!xform ..."
line for the triangles file and replace it with the correct
"!replmarks ..." line (I assume you have already prepared the
Radiance description of the fitting, ies2rad and all that).

Alternative (more along the lines of how I think about Radiance
and the Sketchup scenes):

1) create a "component instance" for the light fitting (shaped as
    the fitting for better placement)
2) place instance in scene
3) export
4) replace the file that represents the instance in the "objects/"
    directory with a file that's created by ies2rad (and spiced up
    with a bit of geometry if you like)

The idea behind the "pre-canned" files is that every component instance
_loaded_ into Sketchup has an associated file path. The script could just
check if next to the component's ".skp" file another file with ".rad"
and ".dat" extension exists and copy these files instead of exporting
the actual component geometry.

IES support then would require you to create a Radiance file for the
fitting (with geometry and correct ".dat" file path), the ".dat" file
and a Sketchup component to represent the fitting in the scene. When
you load and use the component it gets replaced with the Radiance files
on the fly. Other options like dimming could be shoehorned into this
process as well.

Is there a straight forward way of handling instances

Is there more than one way of handling an instance in Sketchup?

Update for those who've faithfully read this far:

I have created a google code project for this script:

     http://code.google.com/p/su2rad/

The download package is still at the last 'release' stage
but the SVN repository has the hot new features
* export by layer
* export by colour and
* import with contour lines

As usual it hasn't seen a lot of testing yet.

Cheers,
Thomas

···

On 26 Nov 2007, at 20:20, steve michel wrote:

Thanks! of course it should have occured to me to use the sketchup 'place-holder' as the lamp geometry -'two birds with one stone'> From: [email protected]> Subject: Re: [Radiance-general] Sketchup exporter script> Date: Mon, 26 Nov 2007 22:41:50 +0000> To: [email protected]> > > On 26 Nov 2007, at 20:20, steve michel wrote:> > > Thanks again for the export script. The following was in > > Fransceco's wiki as a> > future feature (no pun intended)> > <<replacement of component instances with pre-canned Radiance files>>> >> > I hope this will enable the script's ability to handle artificial > > lighting.> > Yes. That's my lazy take on IES file support.> > > I have some ies fixtures i've used in some radiance renders I want> > to use in the Sketchup to radiance generated files.> > So far I've only the following method:> > 1 step converted ies to rad files> > 2 Use mkillum for a wrapper for fixture geometry> > 3 'update' the script generated files to search/replace a> > named scene 'place holder' with items 1 and 2.> >> > Does this approach make sense? If there is a more straight forward> > way, please let me know.> > Search and replace could be done with replmarks. Use triangles> where you want your fittings, find the corresponding "!xform ..."> line for the triangles file and replace it with the correct> "!replmarks ..." line (I assume you have already prepared the> Radiance description of the fitting, ies2rad and all that).> > Alternative (more along the lines of how I think about Radiance> and the Sketchup scenes):> > 1) create a "component instance" for the light fitting (shaped as> the fitting for better placement)> 2) place instance in scene> 3) export> 4) replace the file that represents the instance in the "objects/"> directory with a file that's created by ies2rad (and spiced up> with a bit of geometry if you like)> > The idea behind the "pre-canned" files is that every component instance> _loaded_ into Sketchup has an associated file path. The script could > just> check if next to the component's ".skp" file another file with ".rad"> and ".dat" extension exists and copy these files instead of exporting> the actual component geometry.> > IES support then would require you to create a Radiance file for the> fitting (with geometry and correct ".dat" file path), the ".dat" file> and a Sketchup component to represent the fitting in the scene. When> you load and use the component it gets replaced with the Radiance files> on the fly. Other options like dimming could be shoehorned into this> process as well.> > > Is there a straight forward way of handling instances> > Is there more than one way of handling an instance in Sketchup?> > > Update for those who've faithfully read this far:> > I have created a google code project for this script:> > http://code.google.com/p/su2rad/> > The download package is still at the last 'release' stage> but the SVN repository has the hot new features> * export by layer> * export by colour and> * import with contour lines> > As usual it hasn't seen a lot of testing yet.> > > Cheers,> Thomas> > > > _______________________________________________> Radiance-general mailing list> [email protected]> http://www.radiance-online.org/mailman/listinfo/radiance-general

···

_________________________________________________________________
Express yourself with free Messenger emoticons. Get them today!
http://www.freemessengeremoticons.ca/?icid=EMENCA122

I'm configuring a mac (Os x 10.5) for radiance and while using the ruby exporter script, I did some successful renders. But of late, maybe after I set my RAYPATH variable (by adding the bin and lib paths in the system files), I get the following and inexplicable (to me) error: xform cannot find directories

[CODE]$ rad -o x11 Scene_1.rif rvu -vu 0 0 1 -vf views/Scene_1.vf -ps 3 -pt .08 -dp 512 -ar 0 -ms 4.8 -ds .2 -dj .5 -dt .1 -dc .5 -dr 1 -sj .7 -st .1 -ab 2 -aa .15 -ad 800 -as 128 -av 0.01 0.01 0.01 -lr 8 -lw .002 -R Scene_1.rif -o x11 Scene_1.oct
xform: cannot find file "skies/Lusaka_1108_0830.sky"
rvu: warning - (!xform skies/Lusaka_1108_0830.sky ): empty file
xform: cannot find file "objects/Scene_1_faces.rad"
rvu: warning - (!xform -n Scene_1 objects/Scene_1_faces.rad): empty file[/CODE]

can anyone explain?

regards
HAppy New year
steve

···

_________________________________________________________________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig

Hi Steve,

What is RAYPATH set to at this point? Due to the way xform searches for files, if "." is not in the RAYPATH (e.g., ".:/usr/local/lib/ray") it may not find files in and below the local directory if they are not given as "./path" or as a full path starting from the root.

I hope this helps.
-Greg

···

From: steve michel <[email protected]>
Date: December 28, 2007 5:14:14 PM PST

I'm configuring a mac (Os x 10.5) for radiance and while using the ruby exporter script, I did some successful renders. But of late, maybe after I set my RAYPATH variable (by adding the bin and lib paths in the system files), I get the following and inexplicable (to me) error: xform cannot find directories

[CODE]$ rad -o x11 Scene_1.rif rvu -vu 0 0 1 -vf views/Scene_1.vf -ps 3 -pt .08 -dp 512 -ar 0 -ms 4.8 -ds .2 -dj .5 -dt .1 -dc .5 -dr 1 -sj .7 -st .1 -ab 2 -aa .15 -ad 800 -as 128 -av 0.01 0.01 0.01 -lr 8 -lw .002 -R Scene_1.rif -o x11 Scene_1.oct
xform: cannot find file "skies/Lusaka_1108_0830.sky"
rvu: warning - (!xform skies/Lusaka_1108_0830.sky ): empty file
xform: cannot find file "objects/Scene_1_faces.rad"
rvu: warning - (!xform -n Scene_1 objects/Scene_1_faces.rad): empty file[/CODE]

can anyone explain?

regards
HAppy New year
steve

RAYPATH is set with an absolute path from root pointing to the radiance lib and bin directories. I tried ".:/path" and "/path" and get the same error. It seems that xform is at fault becasue when I $cat the missing files from the project directory I get the listed file content.

the su2rad is not at fault since it worked prior to changes i made:

Adding RAYPATH in the etc/paths file.
and MANPATHS to point to te radiance man pages.

HOWEVER: when I noticed that the !xform -n option is not listed in the xform syntax..
could it be a sketchup export option at fault?

regards and thanks
Steve

···

----------------------------------------

From: [email protected]
Subject: Re: [Radiance-general] Sketchup exporter script
Date: Fri, 28 Dec 2007 17:42:02 -0800
To: [email protected]

Hi Steve,

What is RAYPATH set to at this point? Due to the way xform searches
for files, if "." is not in the RAYPATH (e.g., ".:/usr/local/lib/
ray") it may not find files in and below the local directory if they
are not given as "./path" or as a full path starting from the root.

I hope this helps.
-Greg

From: steve michel
Date: December 28, 2007 5:14:14 PM PST

I'm configuring a mac (Os x 10.5) for radiance and while using the
ruby exporter script, I did some successful renders. But of late,
maybe after I set my RAYPATH variable (by adding the bin and lib
paths in the system files), I get the following and inexplicable
(to me) error: xform cannot find directories

[CODE]$ rad -o x11 Scene_1.rif rvu -vu 0 0 1 -vf views/Scene_1.vf -
ps 3 -pt .08 -dp 512 -ar 0 -ms 4.8 -ds .2 -dj .5 -dt .1 -dc .5 -dr
1 -sj .7 -st .1 -ab 2 -aa .15 -ad 800 -as 128 -av 0.01 0.01 0.01 -
lr 8 -lw .002 -R Scene_1.rif -o x11 Scene_1.oct
xform: cannot find file "skies/Lusaka_1108_0830.sky"
rvu: warning - (!xform skies/Lusaka_1108_0830.sky ): empty file
xform: cannot find file "objects/Scene_1_faces.rad"
rvu: warning - (!xform -n Scene_1 objects/Scene_1_faces.rad): empty
file[/CODE]

can anyone explain?

regards
HAppy New year
steve

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_________________________________________________________________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig

errata: the default su2rad xform syntax is correct. Greg you're right: It was my RAYPATH variable that was pointing only to the radiance lib directory with "/path/lib" I omitted to include the current project directory with proper syntax ".:/path..." Now I see what that colon was doing between the "." and "/path" ie. a separator between the list of paths. The manual page for xform showed me that RAYPATH must point to the working project directory as well as the lib files.

mark this solved thanks again
regards
Steve

···

----------------------------------------

From: [email protected]
To: [email protected]
Subject: RE: [Radiance-general] Sketchup exporter script
Date: Sat, 29 Dec 2007 09:17:08 -0500

RAYPATH is set with an absolute path from root pointing to the radiance lib and bin directories. I tried ".:/path" and "/path" and get the same error. It seems that xform is at fault becasue when I $cat the missing files from the project directory I get the listed file content.

the su2rad is not at fault since it worked prior to changes i made:

Adding RAYPATH in the etc/paths file.
and MANPATHS to point to te radiance man pages.

HOWEVER: when I noticed that the !xform -n option is not listed in the xform syntax..
could it be a sketchup export option at fault?

regards and thanks
Steve

----------------------------------------

From: [email protected]
Subject: Re: [Radiance-general] Sketchup exporter script
Date: Fri, 28 Dec 2007 17:42:02 -0800
To: [email protected]

Hi Steve,

What is RAYPATH set to at this point? Due to the way xform searches
for files, if "." is not in the RAYPATH (e.g., ".:/usr/local/lib/
ray") it may not find files in and below the local directory if they
are not given as "./path" or as a full path starting from the root.

I hope this helps.
-Greg

From: steve michel
Date: December 28, 2007 5:14:14 PM PST

I'm configuring a mac (Os x 10.5) for radiance and while using the
ruby exporter script, I did some successful renders. But of late,
maybe after I set my RAYPATH variable (by adding the bin and lib
paths in the system files), I get the following and inexplicable
(to me) error: xform cannot find directories

[CODE]$ rad -o x11 Scene_1.rif rvu -vu 0 0 1 -vf views/Scene_1.vf -
ps 3 -pt .08 -dp 512 -ar 0 -ms 4.8 -ds .2 -dj .5 -dt .1 -dc .5 -dr
1 -sj .7 -st .1 -ab 2 -aa .15 -ad 800 -as 128 -av 0.01 0.01 0.01 -
lr 8 -lw .002 -R Scene_1.rif -o x11 Scene_1.oct
xform: cannot find file "skies/Lusaka_1108_0830.sky"
rvu: warning - (!xform skies/Lusaka_1108_0830.sky ): empty file
xform: cannot find file "objects/Scene_1_faces.rad"
rvu: warning - (!xform -n Scene_1 objects/Scene_1_faces.rad): empty
file[/CODE]

can anyone explain?

regards
HAppy New year
steve

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_________________________________________________________________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_________________________________________________________________
Introducing the City @ Live! Take a tour!
http://getyourliveid.ca/?icid=LIVEIDENCA006