Page 1 of 2
Lua scripting additions that would be nice to have :)
Posted: Mon Dec 30, 2013 4:03 am
by grimm
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
Re: Lua scripting additions that would be nice to have :)
Posted: Mon Dec 30, 2013 4:13 am
by stratified
Hi Jason,
Phew, I was scared you we're going to ask something really difficult

We'll add it in 1.24.
cheers,
Thomas
Re: Lua scripting additions that would be nice to have :)
Posted: Mon Dec 30, 2013 4:36 am
by grimm
Great! I was just being easy on you. MUUUHAHAHAHA, ah *ahem*
Re: Lua scripting additions that would be nice to have :)
Posted: Fri Jan 03, 2014 6:47 am
by grimm
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
Re: Lua scripting additions that would be nice to have :)
Posted: Fri Jan 03, 2014 6:48 am
by grimm
It would be nice to have access to the color picker widget and the collapsible groups.
Thanks,
Jason
Re: Lua scripting additions that would be nice to have :)
Posted: Fri Jan 03, 2014 10:46 am
by stratified
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
Re: Lua scripting additions that would be nice to have :)
Posted: Sat Jan 04, 2014 11:58 pm
by grimm
Excellent! Thanks Thomas!
Jason
Re: Lua scripting additions that would be nice to have :)
Posted: Thu Jan 09, 2014 7:35 am
by stratified
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
Re: Lua scripting additions that would be nice to have :)
Posted: Sat Jan 25, 2014 10:32 pm
by grimm
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
Re: Lua scripting additions that would be nice to have :)
Posted: Sat Jan 25, 2014 11:12 pm
by pixelrush
Perhaps you should put it in the file name so it shows in the Scripts menu?
TurntableG for 1.28+