Page 2 of 4

Re: Animate value with Lua scripted graph

PostPosted: Wed Aug 02, 2017 4:46 am
by Notiusweb
bepeg4d wrote:Hi Notiusweb,
if I have understood correctly your needs and your intentions, the issue is that, for example the Environment node, is composed of several nodes with different value types, and since OctaneRender Standalone does not have a proper animation timeline, it seems to me a bit difficult and complex to prepare and handle a complete scripted Environment node graph, at least for my skill :roll:
In my opinion it is better to have single animated values for each sub-node that needs to be animated.
best,
ciao beppe


Hello, thanks!
First off, your skills are amazing. You are a brilliant teacher!

I am really looking to see if anyone knows if there is an actual 'noun' in LUA, or category type in LUA, that an entire Octane node (which contains sub nodes) is referenced by.
i.e. - is it a 'Table', an 'Array', etc. Just if anyone knows, what is a 'node' with sub-nodes called in LUA to distinguish it from a single value node, is there a special LUA term?

Thanks again!

Re: Animate value with Lua scripted graph

PostPosted: Wed Aug 02, 2017 10:39 pm
by p3taoctane
First off, your skills are amazing. You are a brilliant teacher!

I second that : >)))

Sorry it is probably obvious but ... How do you use it : >)))

It shows up in my scripts but when I run it on a float value nothing is genereated... I know I am doing something wrong .)

Thanks o Master

Re: Animate value with Lua scripted graph

PostPosted: Thu Aug 03, 2017 6:23 am
by bepeg4d
Hi Peter :)
you need to create a Scripted Graph node from nodegraph contextual menu/Others. Then, in the node inspector, you have to load the script to make it works.
ciao beppe

Re: Animate value with Lua scripted graph

PostPosted: Thu Aug 03, 2017 3:59 pm
by p3taoctane
Thanks mate... perfect indeed

Great feature for little tweaks in an animation
Peter

Re: Animate value with Lua scripted graph

PostPosted: Thu Aug 03, 2017 4:24 pm
by p3taoctane
OK I'm still stuck

I loaded the script and see that I can put in different float stations and values by adding float values to the stations and add a time value for how long a transforamtion lasts... but what do I hook the script into?

If I want to rotate my floor 90 around Y and move a ball in x 1 unit

What goes into the script... a float value right? But how do you tell it to be a a rotational change vs a translational change etc?

And then how do you plug it into your object?

Thanks

Re: Animate value with Lua scripted graph

PostPosted: Thu Aug 03, 2017 4:44 pm
by p3taoctane
There is only an OUT node in the script what can it go into ??

Screen Shot 2017-08-03 at 9.21.34 AM.png

Re: Animate value with Lua scripted graph

PostPosted: Fri Aug 04, 2017 6:17 am
by bepeg4d
Hi Peter,
you need to expose the node with float values that you want to animate.
Please, have a look at this examples:
1. scattering Phase value and Medium Radius animated in the Environment node:
IMG_0465.jpeg

2. X transform value animated in a noise shader:
IMG_0462.jpeg

ciao beppe

Re: Animate value with Lua scripted graph

PostPosted: Fri Aug 04, 2017 3:26 pm
by p3taoctane
Thanks I can see how you can modify bump and vaules in shaders etc... can you use it to move something?

Thanks Beppe

Peter

Re: Animate value with Lua scripted graph

PostPosted: Sat Aug 05, 2017 7:07 am
by bepeg4d
Hi Peter,
yes sure, you just need to expose the Transformation node of the Placement node:
IMG_0473.jpeg

in this example the cube is moving from x=-1, to x=1.
ciao beppe

Re: Animate value with Lua scripted graph

PostPosted: Fri Aug 18, 2017 10:03 pm
by p3taoctane
Ah ha thank you as always mate.

Peter