Page 1 of 2

Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 11, 2011 10:40 am
by TIG
(c) 2011 TIG
All Rights Reserved.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING,WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Plugins folder > OctaneOCMbatchExporter.rb

Usage:

Menu File > Octane OCM Batch Export... > Cameras
or Ruby Console type: OctaneOCMbatch::Camera.export

Only Scenes 'included' in the Animation in the 'Scene Manager' are exported.
To allow logical use of the scenes later keep names sequential - Scene001,
Scene002 etc - never duplicate Scene names.
Available SKP Scenes are exported in turn into an OCM file, suitable to
import into an Octane OCS later.
Each OCM file is saved with the model inside a folder named after the model
thus - e.g. "../ModelName_BatchCameraOCMs/"
Each OCM file is named thus "../ModelName[Camera_SceneName].ocm".
Spaces and Non-ASCII characters are made into '_' in Model/Scene names.
It includes:-
eye [pos] [as xyz]
target [as xyz]
up [as xyz]
fov [degrees]


Menu File > Octane OCM Batch Export... > Suns
or Ruby Console type: OctaneOCMbatch::Sun.export

Only Scenes 'included' in the Animation in the 'Scene Manager' are exported.
To allow logical use of the scenes later keep names sequential - Scene001,
Scene002 etc - never duplicate Scene names.
Available SKP Scenes are exported in turn into an OCM file, suitable to
import into an Octane OCS later.
Each OCM file is saved with the model inside a folder named after the model
thus - e.g. "../ModelName_BatchSunOCMs/"
Each OCM file is named thus "../ModelName[Sun_SceneName].ocm".
Spaces and Non-ASCII characters are made into '_' in Model/Scene names.
It includes:-
sundir [vector]
longitude [degrees]
latitude [degrees]
day [1-31]
month [1-12]
hour [0-24.000]
gmtoffset [0-24]
northoffset [0-1.0, i.e. North-angle as proportion of 360]

Donations:
by PayPal to info @ revitrev.org

Version:
1.0 20111011 First issue.
OctaneOCMbatchExporter.zip
Extract the .rb file from the zip file and put it into the Sketchup Plugins folder, restart to get the menu item[s] in 'File'...
(3.71 KiB) Downloaded 619 times

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 11, 2011 11:04 am
by Alain
Thanks, this seems to be pretty usefull ! :-)

Kind regards
Alain

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 11, 2011 11:24 am
by Interfaces
THANKS, THANKS!!!!! IT 's very good.
Too bad in octane, we can not import multiple file "ocm" both!!!!

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 11, 2011 11:54 am
by Interfaces
The ideal will be to integrate into the Octane exporter version 1024.06 for example with the possibility to import a view or sunlight or all of the views or suns in octane, it would avoid to import one file at a time OCM.

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 11, 2011 12:00 pm
by TIG
I don't think importing OCMs is doable from the command?
But at least it's part way there...
Maybe a working drag+drop of sets of camera-OCMs onto the OCS pane will come soon...

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Wed Oct 12, 2011 1:00 pm
by Interfaces
OK-TIG AND THANKS VERY MUCH !!!!

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Tue Oct 18, 2011 9:22 am
by kubo
that is a nice addition to SU, thanks

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Thu Mar 15, 2012 2:18 pm
by ayan13
Thank you for the grreat plugins! They make life easier.
And TIG , Can you improve the plugins to support asian language path on windows
'cause I have to rename the file to english and put them to non-asian language folder.

Best wishs!

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Thu Mar 15, 2012 7:04 pm
by TIG
Unfortunately the version of Ruby that Sketchup uses is prone to failure with non-ASCII characters in file-names and paths.
It's not just Asian characters but even accented letters as in French words etc.
I'm part of a group looking at ways to fix this, but by the time we cludge around the issue Sketchup will probably be updated to a less problematical with UFT8 stuff...

Re: Batch Cameras / Suns OCM Exporter v1.0

Posted: Fri Mar 16, 2012 11:47 am
by ayan13
TIG wrote:Unfortunately the version of Ruby that Sketchup uses is prone to failure with non-ASCII characters in file-names and paths.
It's not just Asian characters but even accented letters as in French words etc.
I part of a group looking at ways to fix this, but by the time we cludge around the issue Sketchup will probably be updated to a less problematical with UFT8 stuff...
Thank you TIG for so quick reply! I got it!!
:)