Smooth & Easy Camera Animation for OR Standalone, ORC v1.21

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
ssouth
Licensed Customer
Posts: 37
Joined: Fri Oct 05, 2012 1:23 pm

Here is a resulting animation. I attached one of the ships to the camera and made it do a crazy roll...



Steve
pegot
Licensed Customer
Posts: 934
Joined: Mon Nov 07, 2011 3:44 am

Does this script work on Mac or is it Windows only?
Win 10
3.7Ghz i9 10900k / 64GB
ASUS STRIX Z490-E
PSU: PowerSpec 850Wd
RTX 3090 Asus Tuff

Network rendering:
Win 10
4.2Ghz i7 7700k / 64GB
AsRock SuperCarrier
PSU: EVGA 1200w
RTX 3080 Ti EVGA Hybrid
RTX 3080 ASUS Tuff
GTX 1080ti SC Black (wc)
ssouth
Licensed Customer
Posts: 37
Joined: Fri Oct 05, 2012 1:23 pm

pegot wrote:Does this script work on Mac or is it Windows only?
as long as the Mac can run a LUA script I would think so but I am unable to test that though since I don't have a Mac.

download and try...
ssouth
Licensed Customer
Posts: 37
Joined: Fri Oct 05, 2012 1:23 pm

By the way, all the ship animation in this test was done with the OCR script, then it was composited and some VFX added with BlackMagic Fusion:

steven369
Licensed Customer
Posts: 10
Joined: Sat Jun 06, 2015 9:53 am

Thank you guys for this AWESOME script!!! :D
AlexKotovKn
Posts: 1
Joined: Sun Aug 02, 2015 11:26 pm

a camera that focuses on the chest of the player character would be nice if anyone can make it
the default camera is not good enough due to free running lvls
Attachments
73.gif
73.gif (7.43 KiB) Viewed 16903 times
User avatar
ff7darkcloud
Licensed Customer
Posts: 73
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fairfax, VA, USA

It doesn't work anymore with Octane Render 3.0
( PC ) Win10 x64 | 2xRTX2080TI | ASUS Rampage VI Extreme | i9-7900x | 32GB | 1600W
( Laptop ) Win10 x64 | RTX2080Max-Q | Lenovo Legion Y740 | i7-9750H | 32GB - Octane Standalone Win 10/ Sketchup 2019

PORTFOLIO: https://renderspace.wixsite.com/portfolio
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

This is quite a cool extension.

Just tried it in Octane 3.0, as far as I can see it works.

--
Roeland
User avatar
ff7darkcloud
Licensed Customer
Posts: 73
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fairfax, VA, USA

Hi Roeland thanks for your reply, I tried again with 3 alpha 3, when I select output directory or hit render nothing happens. Maybe the plugin needs some kind of overhaul for Version 3? Any help would be greatly appreciated!!

This is an example of what I use this for: https://www.youtube.com/watch?v=4haRGGKqUmQ
( PC ) Win10 x64 | 2xRTX2080TI | ASUS Rampage VI Extreme | i9-7900x | 32GB | 1600W
( Laptop ) Win10 x64 | RTX2080Max-Q | Lenovo Legion Y740 | i7-9750H | 32GB - Octane Standalone Win 10/ Sketchup 2019

PORTFOLIO: https://renderspace.wixsite.com/portfolio
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

I think the problem is that a while ago we standardized all the enumeration tables to be members of the octane table. So the constants to specify file formats are octane.imageSaveType.PNG8 etc.

To manipulate paths use the functions in the octane.file table: octane.file.join(path, ...) will join paths together and it will correctly handle the case where any of the paths happens to be an absolute path. It will also handle the different kinds of slashes. octane.file.getFileNameWithoutExtension will strip the file extension, at the moment the script will overwrite the project file when you have an ORBX package open.

You may get the project path and file name as follows:

Code: Select all

local sceneFile = octane.project.getCurrentProject()
local projectPath = octane.file.getParentDirectory(sceneFile)
local projectName = octane.file.getFileNameWithoutExtension(sceneFile) .. ".orc"
local orcFile = octane.file.join(projectPath, projectName)
Finally note that the `string.gsub` function searches for a pattern, a pattern matching any extension of 3 or 4 characters is [[%.%w%w%w%w?$]].

--
Roeland
Post Reply

Return to “Lua Scripting”