Missing Documentation in Lua API Browser

Forums: Missing Documentation in Lua API Browser
Forum for OctaneRender Lua scripting examples, discussion and support.

Missing Documentation in Lua API Browser

Postby MB » Thu Mar 13, 2014 5:24 pm

MB Thu Mar 13, 2014 5:24 pm
I tried implementing this today, octane.gui.NUMERIC_BOX, but i could not find any documentation of its properties in the api browser.
Am I blind?

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
Licensed Customer
 
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Re: Missing Documentation in Lua API Browser

Postby stratified » Thu Mar 13, 2014 7:08 pm

stratified Thu Mar 13, 2014 7:08 pm
Hi Mark,

No, you're not blind :) We forgot to add the docs for this property, will be fixed in the next release.

Code: Select all
octane.gui.PROPS_NUMERIC_BOX

Properties for a numeric box.

Members:

 • function callback (writable)
    Gui event callback. The signature is: callback(component, event) with component the component on which the event happened and event of type octane.gui.eventType.

 • boolean enable (writable, bindable)
    true if the component is enabled.
    default: true

 • integer height (writable)
    Height of the component in pixels.
    default: 20

 • float maxValue (writable)
    Maximum value of the numeric box.
    default: 100.000000

 • float minValue (writable)
    Minimum value of the numeric box.
    default: 0.000000

 • function mouseCallback (writable)
    Mouse event callback. The signature is: callback(component, event, position {x, y}, wheelscroll {x, y}). Event is of type octane.gui.eventType.

 • string name (writable)
    Name of the component.
    default: "NEW_UNKNOWN_COMPONENT"

 • float step (writable)
    step interval between 2 discrete values
    default: 1.000000

 • integer type (read-only)
    Type of the component.
    default: 8

 • float value (writable, bindable)
    Value of the box in range [minValue, maxValue]
    default: 0.000000

 • integer width (writable)
    Width of the component in pixels.
    default: 100

 • integer x (writable)
    X-offset relative to the parent component in pixels.
    default: 0

 • integer y (writable)
    Y-offset relative to the parent component in pixels.
    default: 0


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

Re: Missing Documentation in Lua API Browser

Postby MB » Fri Mar 14, 2014 11:57 pm

MB Fri Mar 14, 2014 11:57 pm
Thanks Thomas,

Its working like a charm.
Attachments
camera preview.JPG
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 13 guests

Wed Apr 24, 2024 3:49 pm [ UTC ]