Lua scripting additions that would be nice to have :)

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

As I'm working with Octane's scripting there are some things that it would be nice to have.

In the octane.file.getSpecialDirectories() function it would be nice to have the set scripting directory available as well. Maybe something like:

octane.file.getSpecialDirectories()["userScriptDirectory"]

would be awesome. Thanks
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Hi Jason,

Phew, I was scared you we're going to ask something really difficult :D We'll add it in 1.24.

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Great! I was just being easy on you. MUUUHAHAHAHA, ah *ahem*
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

I'm just going to keep adding things here that would be nice to have in Octane's Lua API.

Additional dialog types, it would be nice to have an information and/or success dialog types to inform the user when something happens or that it worked. I'm currently using the error dialog but in some cases it would be a bit jarring on the user.

Thanks,

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

It would be nice to have access to the color picker widget and the collapsible groups.

Thanks,

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

We can expose a colour swatch and more dialogs in 1.25. I'll have a look at how difficult collapsible groups are.

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Excellent! Thanks Thomas!

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

grimm wrote:It would be nice to have access to the color picker widget and the collapsible groups.

Thanks,

Jason
collapsible groups (like in the standalone preferences) will be part of 1.26. If I get to it I'll post a small example tomorrow.

cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Hi Thomas,

I was working on updating the turntable script to work in 1.28 and realized that once I did that it would only work in 1.28. It would be nice to have another script header variable that would have the version of Octane that the script works with and give an error if it doesn't match. Something like a @requiresVersion 1.28 or simply @octaneVersion 1.28? It might be nice to be able to specify a range?

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Perhaps you should put it in the file name so it shows in the Scripts menu?

TurntableG for 1.28+
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
Post Reply

Return to “Lua Scripting”