Grimm's take on the turntable anim script

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

It's only possible to connect a camera to the octane.P_CAMERA pin of the render target. So if there's something connected to that pin it's a camera.

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

I was thinking that the new fisheye lense would be interesting too.
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
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Which new fisheye lens? Or do you mean the distortion in the thinlens camera?

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Yes, that's the one. :D
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
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

grimm wrote:Yes, that's the one. :D
sure, you can animate the camera distortion
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Hi Thomas,

I have been using 1.29 and re-configuring the code but I have come across some problems. The first is that I'm having a lot of problems trying to pass the render target node object to other functions, like the getSceneCopy function. I have tried to assign the node to a global variable and to pass the node as a function parameter, but I'm getting the same error for both, that I'm indexing a nil variable. The strange thing is that if I print the name of the node ie: print(currentTarget.name), I get an error from this line of code but it still prints the correct value in the editor output window. I'm not understanding what is going on here?!? It's like the code is working but then errors out after the fact?

The other issue is not a big one but I'm still having problems with binding the values to the properties table. I was hoping to use this for the default save functions but the octane.gui.createPropertyTable() table breaks the table save code I found on the web. Is this because of the metadata inserted into the table? The current code still works so that is not a big deal, just curious.

Thanks,

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
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Hi Jason,

Could you post your updated code and the project you're using so that I can have a look?

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Thanks Thomas, hopefully I'm not doing something dumb. :D Right now I have the render target set in a global variable.
turntableG-V09T.zip
(21.61 KiB) Downloaded 270 times
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
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

grimm wrote:Thanks Thomas, hopefully I'm not doing something dumb. :D Right now I have the render target set in a global variable.
turntableG-V09T.zip
Jason
No worries Jason.

It's erroring out in the getSceneCopy called from the callback. You haven't updated your combo box code there and as a result you set the current render target to nil (lines 120..134).

I'll look into the table saving later when I have more time.

I hope this helps you to fix it, if not just ask I'll have another look at the RT problem.

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

*sigh* Yep that would do it. :oops: That will teach me to code when I'm not feeling well.
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
Post Reply

Return to “Lua Scripting”