Page 9 of 13
Re: Grimm's take on the turntable anim script
Posted: Wed Jan 29, 2014 7:05 pm
by stratified
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
Re: Grimm's take on the turntable anim script
Posted: Wed Jan 29, 2014 8:15 pm
by grimm
I was thinking that the new fisheye lense would be interesting too.
Re: Grimm's take on the turntable anim script
Posted: Wed Jan 29, 2014 8:37 pm
by stratified
Which new fisheye lens? Or do you mean the distortion in the thinlens camera?
cheers,
Thomas
Re: Grimm's take on the turntable anim script
Posted: Thu Jan 30, 2014 7:45 pm
by grimm
Yes, that's the one.

Re: Grimm's take on the turntable anim script
Posted: Thu Jan 30, 2014 8:22 pm
by stratified
grimm wrote:Yes, that's the one.

sure, you can animate the camera distortion
Re: Grimm's take on the turntable anim script
Posted: Fri Jan 31, 2014 8:47 am
by grimm
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
Re: Grimm's take on the turntable anim script
Posted: Fri Jan 31, 2014 10:18 pm
by stratified
Hi Jason,
Could you post your updated code and the project you're using so that I can have a look?
cheers,
Thomas
Re: Grimm's take on the turntable anim script
Posted: Sat Feb 01, 2014 6:42 am
by grimm
Thanks Thomas, hopefully I'm not doing something dumb.

Right now I have the render target set in a global variable.
Jason
Re: Grimm's take on the turntable anim script
Posted: Sat Feb 01, 2014 11:48 pm
by stratified
grimm wrote:Thanks Thomas, hopefully I'm not doing something dumb.

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
Re: Grimm's take on the turntable anim script
Posted: Sun Feb 02, 2014 3:18 am
by grimm
*sigh* Yep that would do it.

That will teach me to code when I'm not feeling well.