Lua script for moving objects

Forums: Lua script for moving objects
Forum for OctaneRender Lua scripting examples, discussion and support.

Lua script for moving objects

Postby whersmy » Wed Apr 08, 2015 8:11 pm

whersmy Wed Apr 08, 2015 8:11 pm
Just an idea for a very cool script:

I have 3 planes as lights in my studio setup, I work in standalone and have to re-export every time I want to change te size or position of the planes. It would be a huge timesaver if a script would allow to rotate/move/transform those planes to get them faster on their desired positions.

Any idea if this could be possible?

Best
Octane 2022.1.1 nv535.98
mac pro g5| pentium g2030 iGPU| maximus extreme V| 2x gtx590 - 8gb - SSD - win7-x64- 1500W Silverstone|
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments
User avatar
whersmy
Licensed Customer
Licensed Customer
 
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

Re: Lua script for moving objects

Postby ssouth » Thu Apr 09, 2015 9:30 am

ssouth Thu Apr 09, 2015 9:30 am
If I understand your three planes correctly, maybe a setup like this might work for you:

Separate the lighting from the subject. then add some transforming handles to the lighting so you can adjust them to your liking.

I don't know if building a script would be any easier then this.

Three point lighting file (Import this into your scene.) if you need more lights just copy the node once it's imported. Then use a [Geometry Group] node to bring them together.

threepointlights.ocs
Module containing three light sources
(21.68 KiB) Downloaded 336 times


and a quick demo file

Demo.ocs
This is a demo set-up
(30.88 KiB) Downloaded 343 times
ssouth
Licensed Customer
Licensed Customer
 
Posts: 37
Joined: Fri Oct 05, 2012 1:23 pm

Re: Lua script for moving objects

Postby whersmy » Thu Apr 09, 2015 12:32 pm

whersmy Thu Apr 09, 2015 12:32 pm
Thanks for the feedback!

The demo file doesn`t include the .obj lights.

But I think I got the method, fairly easy. Lights exported as seperate objects with it`s own placement !
Octane 2022.1.1 nv535.98
mac pro g5| pentium g2030 iGPU| maximus extreme V| 2x gtx590 - 8gb - SSD - win7-x64- 1500W Silverstone|
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments
User avatar
whersmy
Licensed Customer
Licensed Customer
 
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 6 guests

Fri Mar 29, 2024 1:24 am [ UTC ]