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 327 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: 1740
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!
Win7, Modo 10.1, Octane for Modo and Sketchup, nVidia latest, TITAN+3x780 6GB, 2600K, P8P67WS, 32GB, 1350W
SMH10, EK, Airplex_480, SR1_560, 20xNB_PL2, 2xD5, Aquaero 6XT
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3145
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 ) Win 10 x64 | 4xGTX1080TI | ASUS Rampage VI Extreme | i9 7900x | 32GB | 1600W
( Laptop ) Win 10 x64 | GTX1070 | MSI GT73VR | i7 6820HK | 32GB - Octane Standalone Win 10/ Octane for Sketchup 2018

PORTFOLIO: archvi.wix.com/archvi
User avatar
ff7darkcloud
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fredericksburg, 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! =)
tomGlimps | [email protected] | 32GB | TitanBlack
Available for Freelance, Coaching & Mentoring
User avatar
glimpse
Licensed Customer
Licensed Customer
 
Posts: 3579
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: 6583
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 516 times
User avatar
roeland
OctaneRender Team
OctaneRender Team
 
Posts: 1740
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 ) Win 10 x64 | 4xGTX1080TI | ASUS Rampage VI Extreme | i9 7900x | 32GB | 1600W
( Laptop ) Win 10 x64 | GTX1070 | MSI GT73VR | i7 6820HK | 32GB - Octane Standalone Win 10/ Octane for Sketchup 2018

PORTFOLIO: archvi.wix.com/archvi
User avatar
ff7darkcloud
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Sun Mar 18, 2012 11:20 pm
Location: Fredericksburg, 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 Xp, 1 Titan X Pascal
External: 6 Titan X Pascal - 1600W EVGA T2
Plugs: 3DSMax, C4D, Daz, Houdini, Lightwave, Sketchup
User avatar
Notiusweb
Licensed Customer
Licensed Customer
 
Posts: 1125
Joined: Mon Nov 10, 2014 4:51 am
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

Tue Sep 17, 2019 4:19 pm [ UTC ]