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

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
Mithrandir
Posts: 12
Joined: Sun Jun 01, 2014 9:56 pm


Version 1.2 Now with Bezier smoothing



Introduction to Ol' Ready Cam (ORC)
Hola, from Middle-earth.
Herein you'll find a camera key frame animation script for Octane Standalone; it also comes with a camera exporter for Blender which has been incorporated in the Blender Community Plugin. Please note however, that the animations can be created directly in Octane Standalone with no need of an exporter. The exporters are nice for the precision of camera placement.
The script incorporates some code and ideas found in other scripts of the forum.
Thanks for this goes to Thomas Loockx, Roeland, gmillas, Jason Grimes, Mark Bassett & Matej Moderc.
Credit for the output file naming goes to linvanchene in dialog with ekoja, kavorka, and ROUBAL which they hashed out at http://render.otoy.com/forum/viewtopic. ... 12#p190212

Script Installation
Here are a couple of quick images showing installation of the Lua scripts and Blender addon. See below for a PDF which goes more in-depth with some usages notes.
Quick Summary of installing the Lua scripts
Quick Summary of installing the Lua scripts
Quick Summary of using Blender with Octane
Quick Summary of using Blender with Octane
Using ORC Within Octane
  • * Open an existing project, and click on a Render Target node.
    * You can add frames by pressing Alt A or selecting Ol Ready Add located in Octane’s Script menu. If Ol Ready Add does not appear in the menu, try selecting Reload Scripts in the Script menu. If still nothing, the scripts were not properly installed.
    * The number one rule in adding a key frame is to first select a Render Target node if more than one is present and especially if multiple cameras are being used. ORC will warn you if this condition exists and tell you which one it will use. This however, may not correspond to the current camera view meaning that every frame you add will be for the exact same position from the camera to which ORC defaulted.
    * It is best to use the Camera Picker tool to set the camera’s target before adding a frame. You may get unexpected results if you don’t do this. When Octane’s camera is moved around, the position and target change but the target might end up 10 meters in one place and 10,000 in another. You’ll quickly learn when you need not use it and when you need it.
Creating Key Frames
So now the repeated workflow for adding frames is this:
  • * Move the camera to the desired position and click with the camera picker if needed.
    * Press Alt A to get the dialog box
    * Click Add Frame.
AddFrame.png
AddFrame.png (43.13 KiB) Viewed 26618 times
The Main Script
After having added the desired number of frames:
  • * Press Alt R to run Ol' Ready Cam.
    * Sliders and preview buttons in the Key Frame tab will give immediate feedback for the the frames you created with Ol Ready Add. At this point it is best just to explore the tabs and functions. It is suggested that you keep a render target using the Info channel kernel with shading normals available as 1 sample ppx can create a quick clean render for quickly viewing an animation.
Ol' Ready Cam
Ol' Ready Cam
Changes for version 1.21
8/14/14
  • 1. Fixed a Bezier smoothing problem where gaps were being made at the bounding control points.
    2. Slight tweak to solar movement where complete range wasn't showing for fewer than 10 frames.
Changes for version 1.2
8/11/14
  • 1. Added a global setting called Bezier Smoothing located in the Key Frame tab. This can be adjusted to set the desired smoothness of transitions between key frames.
    2. In the Animation tab, the Starting Sequence field has been renamed Starting # and placed within the Frame Range settings just above the Start frame number. Starting # controls the start of the sequence numbers used in the image file names.
Installation Instructions
Ol_Ready_Cam.pdf
Installation of ORC for Octane and Blender.
(920.58 KiB) Downloaded 1699 times
ORC Version 1.21 August 14, 2014
OlReadyCam_v1_21.zip
Ol' Ready Cam version 1.21
(50.22 KiB) Downloaded 1456 times
Edit: updated version for Octane 3.00:
OlReadyCam_3.0.zip

Blender Community Plugin Version 1.52
octanerender_v152.zip
(72.21 KiB) Downloaded 1151 times
Last edited by Mithrandir on Fri Aug 15, 2014 1:39 pm, edited 6 times in total.
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Excellent! Looks very nice! :)

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
knot515
Licensed Customer
Posts: 13
Joined: Tue Jun 18, 2013 10:08 am

damn that's really good. will you release it?
it would be perfect if it will have some kind of keyframe-set batch render like octane power tools had (https://www.youtube.com/watch?v=24gJAkZ2F_w) in order to store all movements (and eventually render passes or daylight setups) and render everything overnight.

great job btw
Mithrandir
Posts: 12
Joined: Sun Jun 01, 2014 9:56 pm

Thank you Jason and knot515.
And yes knot515 it will be released as soon as I get a little video showing how it can be used with Blender. Hopefully by the end of the week or beginning of next. Having done a pre-release announcement has been to gauge how much interest there is in scripts like this. It makes one decide how much time to put in documenting installation, etc...So far, it looks like most users must be using the packaged plugins. Time will tell.

As far as batch processing, it would be on a subsequent release. If you've seen the 'Batch Output Render Targets' script by Mark and Thomas, I could base it on that except that it would work with ORC project files. But before that, people first need to see what this script can do. If you been using multiple render targets as a means to do separate product shots, you can condense them into one and just save multiple positions to an ORC file.

- Mtl
User avatar
smicha
Licensed Customer
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

This is a miracle! :o :shock: I've been waiting for this for years :) This lets me create some flythroughs without a need of .abc and external apps.

Can't wait to test it. Great job :!:
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

Most Excellent!!!!!
Can you key frame an existing ABC animated file

i.e. animated geom but not camera... and you use your tool to animate cam

thanks
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
Mithrandir
Posts: 12
Joined: Sun Jun 01, 2014 9:56 pm

Thank you Smicha, but no miracle here, merely human endeavor. Miracles are what you've had in Poland with the demise of communism and now with a new saint in St John Paul. Great things for Poland and the world.

p3taoctane, if this could handle alembic, I'd just be using alembic. No, this is just a simple camera and sun animator which was really written to find a shot between point A and B, though it evolved beyond that. I'm sure everyone has struggled with Octane's camera when working with heavy geometry. You want to move the camera just a tad but all of a sudden it is in Timbuktu. Now to get a shot, save the camera position before you move the camera, move it off the edge of your virtual world and save another position. The shot you want is probably somewhere in between. Lua is quite capable of being used for writing a full blown animator with texture blending, and any other thing that can be interpolated in Octane's node graph... but I'll leave that to younger, more eager programmers who will do it for the shear joy coding. I'm quite over the hill having written my first program in 1976 and entering it with keypunch cards.

I'll be working today to get the code posted.
-Mtl
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

Thanks for the info effort and... :D far from over the hill good sir
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
Mithrandir
Posts: 12
Joined: Sun Jun 01, 2014 9:56 pm

Well, version v1.1 has been set in the first post of the thread.
I may have to make a PDF of the instructions but hopefully what's there is enough to go by.
-Mtl
User avatar
smicha
Licensed Customer
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Long night before me :)
Marcus surprised me here
http://render.otoy.com/forum/viewtopic. ... 35#p197535
and now it is time for some animation :)

Greetings from beautiful Poland.
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
Post Reply

Return to “Lua Scripting”