Lua scripts with SketchUp 3.06.1.4 Test Release

Forums: Lua scripts with SketchUp 3.06.1.4 Test Release
SketchUp Integrated Plugin (Integrated Plugin maintained by OTOY)

Lua scripts with SketchUp 3.06.1.4 Test Release

Postby bepeg4d » Sat May 27, 2017 3:48 pm

bepeg4d Sat May 27, 2017 3:48 pm
Hi all,
one of the most interesting features introduced by Octane Render for SketchUp 3.06.1.4 Test Release is the possibility to use Lua scripts and Lua Scripted Graph nodes inside Sketchup, to greatly expand and automate your workflow.
First of all, you can start by trying the default Standalone scripts like Daylight or the Turntable animation scripts:
su3.6.1_05.JPG

Note: you need to select the Default View Render Target node with a Daylight node before performing the Daylight animation script, while you need to firstly center the view with the proper picker, and correct the Up-verctor value to 0, 1, 0 before performing th Turntable script:
Screen Shot 2017-05-27 at 17.23.26.jpg


The Batch Rendering script will become useful when we could have different Render Targets in the scene, then we will be able to render multiple RT in one time.


To add new scripts, the best way is to open Octane viewport, then go to menu File/Preferences/Application and change the path of the Lua scripts directory, to easily access the folder, or specify a new more comfortable one:

Then you can check the Lua script repository discussion to find out some interesting scripts.
Note that this feature is just been added, so some errors can occor. Please, let us know about any issue discovered.


Texture2glossy
Here is one of my simple scripts modified to work with Sketchup plugin, it creates a Glossy material starting from a Diffuse image texture path. It is possible to specify the Bump and Specular/Roughness suffix to automatically find the textures, if not found, the diffuse texture in grayscale mode will be used:
su3.6.1_07.JPG

Texture2glossy.lua
(14.35 KiB) Downloaded 186 times

Happy rendering :)
ciao beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 6586
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Lua scripts with SketchUp 3.06.1.4 Test Release

Postby smicha » Sat May 27, 2017 7:01 pm

smicha Sat May 27, 2017 7:01 pm
Thank you. I am testing the texture scatter LUA now and works great in the scripted graph. The only issue for now is the SU Octane stability. It crashes whenever I copy any component when rendering is on.
Win7, Modo 10.1, Octane for Modo and Sketchup, nVidia latest, TITAN+3x780 6GB, 2600K, P8P67WS, 32GB, 1350W
SMH10, EK, Airplex_480, SR1_560, 20xNB_PL2, 2xD5, Aquaero 6XT
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3145
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Lua scripts with SketchUp 3.06.1.4 Test Release

Postby azen » Tue May 30, 2017 2:32 am

azen Tue May 30, 2017 2:32 am
smicha wrote:Thank you. I am testing the texture scatter LUA now and works great in the scripted graph. The only issue for now is the SU Octane stability. It crashes whenever I copy any component when rendering is on.



Hi,

Just to clarify, is this issue is to do with grouped geometry? This issue is currently under investigation, as this appears to be a consistent issue among testers.

Cheers,
Azen
azen
OctaneRender Team
OctaneRender Team
 
Posts: 640
Joined: Mon Jun 01, 2015 11:06 pm

Re: Lua scripts with SketchUp 3.06.1.4 Test Release

Postby smicha » Tue May 30, 2017 5:46 am

smicha Tue May 30, 2017 5:46 am
azen wrote:
smicha wrote:Thank you. I am testing the texture scatter LUA now and works great in the scripted graph. The only issue for now is the SU Octane stability. It crashes whenever I copy any component when rendering is on.



Hi,

Just to clarify, is this issue is to do with grouped geometry? This issue is currently under investigation, as this appears to be a consistent issue among testers.

Cheers,
Azen


Yes - grouped and as components. It crashes but not necessarily all the time.
Win7, Modo 10.1, Octane for Modo and Sketchup, nVidia latest, TITAN+3x780 6GB, 2600K, P8P67WS, 32GB, 1350W
SMH10, EK, Airplex_480, SR1_560, 20xNB_PL2, 2xD5, Aquaero 6XT
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3145
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Return to SketchUp


Who is online

Users browsing this forum: No registered users and 2 guests

Wed Sep 18, 2019 2:05 pm [ UTC ]