Unzip the .rb file and put it into Plugins...
- (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 > OctaneOCMexporter.rb
Usage:
Menu File > Octane OCM Export... > Camera
or Ruby Console type: OctaneOCM::Camera.export
If options are available a dialog opens and you can choose from
<Current_View>, <Current_Scene> or any other Scene tab-name listed.
It exports the camera data from the SKP Scene into an OCM file
suitable to import into an Octane OCS. The file is saved with the model.
It 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 Export... > Sun
or Ruby Console type: OctaneOCM::Sun.export
If options are available a dialog opens and you can choose from
<Current_View>, <Current_Scene> or any other Scene tab-name listed.
It exports the sun data from the SKP Scene into an OCM file
suitable to import into an Octane OCS. The file is saved with the model.
It 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 20110504 First issue.
This allows you to export OCM files of the camera and sun data separately from different scenes and then import them into the existing project's OCS without needing to re-export its SKP geometry again...
Feedback please...