Lua scripting additions that would be nice to have :)

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

grimm wrote: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
Hi Jason,

We can add a version in the header and hide the scripts in the script menu that don't work with the current version. However, we don't parse the header while running the script but we could add an explicit API function that does a version check (this would be the first function in your script).

Keep in mind that once 1.5 is released we don't plan to break lua each release :D We'll try to maintain backwards compatibility as much as possible. Luckily for 1.5 most lua stuff is finished.

cheers,
Thomas
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

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

TurntableG for 1.28+
hi,

Jason's script is indeed excellent and probably the biggest and most feature complete script written for Octane so far. However, we're not going to ship it as part of Octane like our animation scripts. Simply because if anything goes wrong, it's our responsibility to maintain the script. And we don't have the time to do that.

In the (near) future, we'll provide the ability for users to put scripts in the LiveDB. OTOY will approve these scripts. Jason's script is definitely a script that belongs in LiveDB.

cheers,
Thomas
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Thomas,

It would be very helpful to have the equivalent of a MS Windows 'DomainUPDown" control, i.e the thing that you have on the left before the slide bar on your slider control.

thx

Mark.
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Thomas,
It would also be nice to be able to position a scripts main window relative to the octane parent window similar to what can be done when loasing a MS windows form. It would good to be able to place the script window such that it does not obscure the main render window hence positioning its lower right corner near the parent window's lower right corner would one requirement.

best

Mark
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

MB wrote:Thomas,

It would be very helpful to have the equivalent of a MS Windows 'DomainUPDown" control, i.e the thing that you have on the left before the slide bar on your slider control.

thx

Mark.
Hi Mark,

What is the difference with the combo box we provide? We only try to expose the components that are also available in Octane Standalone. This gives a more consistent look and feel.

cheers,
Thomas
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

The MS updown controll lets you increment a value up or down by a step amount, it would essentially do the same as the slider, but without the slidebar, so takes up much less space and is thus useful for things where the range would not be very large, you essentialy have it, its just always attatched to the horizontal slider, so is pretty consistent with ur current UI (which btw is one of the best looking i have ever seen in a software product, someone has some good taste.)

A combobox is a dropdown list of elements populated by the coder, it would get way too long if used instead of this control.

best
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Ah, thanks for the clarification, now I understand. Yep, we can add those numeric boxes, I'll try to make it happen in one of the next releases.

cheers,
Thomas
Post Reply

Return to “Lua Scripting”