Animation / scripting for dummies?

Forums: Animation / scripting for dummies?
Forum for OctaneRender Lua scripting examples, discussion and support.

Animation / scripting for dummies?

Postby Jorgensen » Thu Apr 05, 2018 3:49 pm

Jorgensen Thu Apr 05, 2018 3:49 pm
hi there :-)

i would like to do a small and very simple animation of the octane sun - and found and downloaded the daylight-animation.lua.

but now what? i simply can't figure out how to get started?

is there a guide for noobs? :-)

thanks
jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Re: Animation / scripting for dummies?

Postby bepeg4d » Thu Apr 05, 2018 3:59 pm

bepeg4d Thu Apr 05, 2018 3:59 pm
Hi jorgensen,
the Daylight animation should be already listed in the Script menu, alonge with Batch rendering and Turntable:
D3ACFD44-F560-432C-BED8-4FEAF4C4A94B.jpeg

Just select the desired Render Target node with Daylight Environment node, go to the Script menu and choose the Daylight script:
4874B97C-E269-4F38-AC33-0D6E65D92AE9.jpeg

Set the Start time, End time, duration, saving path, and render.
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 6019
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animation / scripting for dummies?

Postby Jorgensen » Thu Apr 05, 2018 4:28 pm

Jorgensen Thu Apr 05, 2018 4:28 pm
hi beppe

now that was simple, if you now how to :-)

thanks - once again beppe :-)

edit
if i want to create a clip where eg. the camera aparture is animated - what would be the right direction to do that?
is it core lua programming or are there some cut and paste scripts that can be used for that?

thanks
jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Re: Animation / scripting for dummies?

Postby bepeg4d » Fri Apr 06, 2018 7:12 am

bepeg4d Fri Apr 06, 2018 7:12 am
Hi jorgensen,
please, have a look at this series of scripted graph nodes to basic animate any kind of parameter:
viewtopic.php?f=73&t=63584
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 6019
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animation / scripting for dummies?

Postby Jorgensen » Fri Apr 06, 2018 9:36 am

Jorgensen Fri Apr 06, 2018 9:36 am
Thank beppe

I will.

Jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Re: Animation / scripting for dummies?

Postby Jorgensen » Sat Apr 07, 2018 11:14 am

Jorgensen Sat Apr 07, 2018 11:14 am
hi beppe

i have searched the manual and the forums for a simple thing as setting the animation length and how to setup and start to render an animation,
but when i search for animation in the forum - i'm told that "animation" is a too common word :roll: and the forum manuel did not help.

in the manual i found this link
https://docs.otoy.com/StandaloneH_STA/StandaloneManual.htm#StandaloneSTA/RenderingAnimations.htm?Highlight=animation
witch did not help me in any means :roll:

i might be to noob for this - why is it so complicated to setup an animation?
- proberply easy to do when you know how.

Jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Re: Animation / scripting for dummies?

Postby bepeg4d » Sat Apr 07, 2018 1:13 pm

bepeg4d Sat Apr 07, 2018 1:13 pm
Hi Jorgensen,
OctaneRender is a render engine, so it does not have the ability to create and manage animation data, but can read the animation data of a scene for rendering.
With Lua script it is possible to generate animation data, so, as soon as you load one of the AnimateValues scripted graph nodes, the animation bar is generated in viewport, and you can create some basic animations.
Please, have a look at this simple example about camera moving:
download/file.php?id=67125
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 6019
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animation / scripting for dummies?

Postby Jorgensen » Sat Apr 07, 2018 2:10 pm

Jorgensen Sat Apr 07, 2018 2:10 pm
Hi beppe

thanks - i think i can setup the scrip nodes.

i can see all the frames and animation of the camera, when i move the small icon along the timeline, but how do i actually set the kernal to render all the frames to png's?
and where do i set the total number of frames?

a lot of question - but i think that i soon will see the light :-)




thanks
jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Re: Animation / scripting for dummies?

Postby bepeg4d » Sat Apr 07, 2018 2:15 pm

bepeg4d Sat Apr 07, 2018 2:15 pm
Hi jorgensen,
have a look at Batch Rendering, and render Job nodes:
Batch Rendering
Render Job
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 6019
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animation / scripting for dummies?

Postby Jorgensen » Sat Apr 07, 2018 2:54 pm

Jorgensen Sat Apr 07, 2018 2:54 pm
hi beppe

thanks - your help is very appreciated.

now i got something up and running.

Jorgensen
HOME octane standalone v3.07 | octane plugin for sketchup 3.07.0.14 | sketchup pro 2017 17.2.2555 64 bit | windows 10 pro 10.015063 build 15063 | i7-6700k @4.0 GHz | 32gb ram | 2x gtx 1070 | nvidia driver 382.33
Jorgensen
Licensed Customer
Licensed Customer
 
Posts: 871
Joined: Sun Jun 30, 2013 10:53 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 2 guests

Thu Dec 13, 2018 12:16 am [ UTC ]