Batch Cameras / Suns OCM Exporter v1.0

Forums: Batch Cameras / Suns OCM Exporter v1.0
SketchUp Integrated Plugin (Integrated Plugin maintained by OTOY)

Batch Cameras / Suns OCM Exporter v1.0

Postby TIG » Tue Oct 11, 2011 10:40 am

TIG Tue Oct 11, 2011 10:40 am
(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 587 times
TIG
User avatar
TIG
Licensed Customer
Licensed Customer
 
Posts: 536
Joined: Wed May 12, 2010 1:25 pm

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby Alain » Tue Oct 11, 2011 11:04 am

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

Kind regards
Alain
Intel Pentium 2.8 GHz 2 Cores, 8 GB RAM, GeForce GTX Titan 8GB, Blender 2.72b, Win 7 64 Bit
Alain
Licensed Customer
Licensed Customer
 
Posts: 270
Joined: Tue Jan 12, 2010 12:12 pm

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby Interfaces » Tue Oct 11, 2011 11:24 am

Interfaces Tue Oct 11, 2011 11:24 am
THANKS, THANKS!!!!! IT 's very good.
Too bad in octane, we can not import multiple file "ocm" both!!!!
User avatar
Interfaces
Licensed Customer
Licensed Customer
 
Posts: 212
Joined: Mon Jun 27, 2011 9:41 am
Location: FRANCE

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby Interfaces » Tue Oct 11, 2011 11:54 am

Interfaces Tue Oct 11, 2011 11:54 am
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.
User avatar
Interfaces
Licensed Customer
Licensed Customer
 
Posts: 212
Joined: Mon Jun 27, 2011 9:41 am
Location: FRANCE

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby TIG » Tue Oct 11, 2011 12:00 pm

TIG Tue Oct 11, 2011 12:00 pm
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...
TIG
User avatar
TIG
Licensed Customer
Licensed Customer
 
Posts: 536
Joined: Wed May 12, 2010 1:25 pm

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby Interfaces » Wed Oct 12, 2011 1:00 pm

Interfaces Wed Oct 12, 2011 1:00 pm
OK-TIG AND THANKS VERY MUCH !!!!
User avatar
Interfaces
Licensed Customer
Licensed Customer
 
Posts: 212
Joined: Mon Jun 27, 2011 9:41 am
Location: FRANCE

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby kubo » Tue Oct 18, 2011 9:22 am

kubo Tue Oct 18, 2011 9:22 am
that is a nice addition to SU, thanks
windows 7 x64 | 2xGTX570 (warming up the planet 1ºC at a time) | i7 920 | 12GB
User avatar
kubo
 
Posts: 1377
Joined: Wed Apr 21, 2010 4:11 am
Location: Madrizzzz

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby ayan13 » Thu Mar 15, 2012 2:18 pm

ayan13 Thu Mar 15, 2012 2:18 pm
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!
User avatar
ayan13
Licensed Customer
Licensed Customer
 
Posts: 22
Joined: Sat Jul 17, 2010 8:48 am

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby TIG » Thu Mar 15, 2012 7:04 pm

TIG Thu Mar 15, 2012 7:04 pm
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...
Last edited by TIG on Sat Mar 17, 2012 10:07 am, edited 1 time in total.
TIG
User avatar
TIG
Licensed Customer
Licensed Customer
 
Posts: 536
Joined: Wed May 12, 2010 1:25 pm

Re: Batch Cameras / Suns OCM Exporter v1.0

Postby ayan13 » Fri Mar 16, 2012 11:47 am

ayan13 Fri Mar 16, 2012 11:47 am
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!!
:)
User avatar
ayan13
Licensed Customer
Licensed Customer
 
Posts: 22
Joined: Sat Jul 17, 2010 8:48 am
Next

Return to SketchUp


Who is online

Users browsing this forum: No registered users and 10 guests

Thu Mar 28, 2024 11:14 pm [ UTC ]