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

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
roeland
OctaneRender Team
Posts: 1822
Joined: Wed Mar 09, 2011 10:09 pm

This version should work with versions 2.25 and 3.00 alpha 10:
OlReadyCam_3.0.zip
(50.35 KiB) Downloaded 636 times
I had a look, and there are 2 breaking changes in the Octane API:
  • The imageSaveType enum moved to another module
  • The shutter speed settings moved to a node on the render target
The script also no longer overwrites ORBX files.

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

Thank you!
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
User avatar
ff7darkcloud
Licensed Customer
Posts: 73
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fairfax, VA, USA

I just saw this, you just made my day! And it is only 12:16 am! Thanks!
( 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
glimpse
Licensed Customer
Posts: 3740
Joined: Wed Jan 26, 2011 2:17 pm
Contact:

thanks! =)
Cosoli
Licensed Customer
Posts: 27
Joined: Wed Aug 13, 2014 4:42 pm

roeland wrote:This version should work with versions 2.25 and 3.00 alpha 10:
But It doesn't work with Octane Render 3.0 for me..... :shock:

When i used "OI Ready Cam", it showed that
Wrong data type for key
Wrong data type for key
Could anyone help me?

Thanks!
User avatar
bepeg4d
Octane Guru
Posts: 10323
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Cosoli,
you are right, it works till v3 beta 1 and then it has stopped to work with that error message. Could you use v3 beta 1 while roeland find the time to have a look at the script to fix it?
ciao beppe
User avatar
roeland
OctaneRender Team
Posts: 1822
Joined: Wed Mar 09, 2011 10:09 pm

Yes the problem is the line keyframe.screenItem[b][[/b]i].slider.value = keyframe.item[b][[/b]ix]. I added more validation in the Lua API in a couple of places, to avoid such code failing silently if there's something wrong. The upshot is, if a value is set which is not the right type, or if you try to set nil then it will raise an error.

You can replace the affected function with the code below

Code: Select all

function keyframe:setDefaultSliderValues()

    for i=1, cameraFile.totalFrames do
        keyframe.item[i] = keyframe.defaultSliderValue
    end

    local ix = keyframe.index
    for i=1, keyframe.screenLimit-1 do 
        if keyframe.item[ix] then
            keyframe.screenItem[i].slider.value = keyframe.item[ix]
        end
        ix = ix+1
    end
end
--
Roeland
Attachments
OlReadyCam_3.0.zip
(50.36 KiB) Downloaded 1225 times
Cosoli
Licensed Customer
Posts: 27
Joined: Wed Aug 13, 2014 4:42 pm

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

Hello Roeland and Bepeg!! , I have been using 3.06 TEST 3 for commercial work now, and it has been great. The Adaptive sampling works awesome.

But looks like it this LUA script got broken. If you could fix it yet again, would be greatly appreciated!.

I attach screen with error.

Thanks!
Attachments
Error trying to use.
Error trying to use.
( 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
Notiusweb
Licensed Customer
Posts: 1285
Joined: Mon Nov 10, 2014 4:51 am

This is the part the error is complaining about

\orcbin\widget.lua
line 265 (self.bar = octane.gui.create), argument #3

Code: Select all

 progressBar = function(self, argv)

        self.bar =  octane.gui.create
        {
            type   = octane.gui.componentType.PROGRESS_BAR,
            text   = argv.text or "",
            width  = argv.width or 400,
            height = argv.height or 25,
            x      = argv.x or 0,
            y      = argv.y or 0
        }
        return self
    end,
Win 10 Pro 64, Xeon E5-2687W v2 (8x 3.40GHz), G.Skill 64 GB DDR3-2400, ASRock X79 Extreme 11
Mobo: 1 Titan RTX, 1 Titan Xp
External: 6 Titan X Pascal, 2 GTX Titan X
Plugs: Enterprise
Post Reply

Return to “Lua Scripting”