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

Forums: Smooth & Easy Camera Animation for OR Standalone, ORC v1.21
Forum for OctaneRender Lua scripting examples, discussion and support.

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

Postby roeland » Fri Apr 29, 2016 5:48 am

roeland Fri Apr 29, 2016 5:48 am
This version should work with versions 2.25 and 3.00 alpha 10:

OlReadyCam_3.0.zip
(50.35 KiB) Downloaded 591 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
roeland
OctaneRender Team
OctaneRender Team
 
Posts: 1808
Joined: Wed Mar 09, 2011 10:09 pm

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

Postby smicha » Fri Apr 29, 2016 7:29 am

smicha Fri Apr 29, 2016 7:29 am
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
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

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

Postby ff7darkcloud » Thu May 12, 2016 7:17 am

ff7darkcloud Thu May 12, 2016 7:17 am
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
ff7darkcloud
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fairfax, VA, USA

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

Postby glimpse » Thu May 12, 2016 7:23 am

glimpse Thu May 12, 2016 7:23 am
thanks! =)
User avatar
glimpse
Licensed Customer
Licensed Customer
 
Posts: 3715
Joined: Wed Jan 26, 2011 2:17 pm

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

Postby Cosoli » Tue May 24, 2016 5:05 pm

Cosoli Tue May 24, 2016 5:05 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
2016-05-25.png
Wrong data type for key


Could anyone help me?

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

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

Postby bepeg4d » Wed May 25, 2016 9:43 am

bepeg4d Wed May 25, 2016 9:43 am
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
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

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

Postby roeland » Thu May 26, 2016 12:24 am

roeland Thu May 26, 2016 12:24 am
Yes the problem is the line keyframe.screenItem[i].slider.value = keyframe.item[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 1098 times
User avatar
roeland
OctaneRender Team
OctaneRender Team
 
Posts: 1808
Joined: Wed Mar 09, 2011 10:09 pm

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

Postby Cosoli » Thu May 26, 2016 2:12 pm

Cosoli Thu May 26, 2016 2:12 pm
THANKS!!! :D
Cosoli
Licensed Customer
Licensed Customer
 
Posts: 27
Joined: Wed Aug 13, 2014 4:42 pm

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

Postby ff7darkcloud » Thu Mar 16, 2017 2:13 am

ff7darkcloud Thu Mar 16, 2017 2:13 am
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
ORC ERROR.jpg
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
ff7darkcloud
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fairfax, VA, USA

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

Postby Notiusweb » Tue Jun 20, 2017 2:53 pm

Notiusweb Tue Jun 20, 2017 2:53 pm
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
User avatar
Notiusweb
Licensed Customer
Licensed Customer
 
Posts: 1285
Joined: Mon Nov 10, 2014 4:51 am
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 4 guests

Thu Mar 28, 2024 3:55 pm [ UTC ]