Script to create Lua API documentation in html.

Forums: Script to create Lua API documentation in html.
Forum for OctaneRender Lua scripting examples, discussion and support.

Re: Script to create Lua API documentation in html.

Postby stratified » Fri Aug 08, 2014 8:34 pm

stratified Fri Aug 08, 2014 8:34 pm
ultrafish wrote:This script is crashing with the current demo version of octane because octane[moduleName] == nil when moduleName == 'benchmark' or 'octane'. The crash happens on lines 122 and 164. I was able to put checks in for myself, but I didn't want to post my code since I'm very new to octane and I thought it might be an issue only with the demo version.

Thanks.


Hi,

I'll update this script as soon as I have some time.

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

Re: Script to create Lua API documentation in html.

Postby stratified » Mon Aug 11, 2014 10:14 pm

stratified Mon Aug 11, 2014 10:14 pm
I've attached an updated script to the first post. Should work now.

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

Re: Script to create Lua API documentation in html.

Postby Wallan » Thu Mar 05, 2015 8:05 pm

Wallan Thu Mar 05, 2015 8:05 pm
Get an error when trying to run the scriupt.

[string "create-docs.lua"]:136: bad argument #1 to 'functionDoc' (string expected, got function)
Windows 7 Ultimate 64bit 32Gb RAM. Intel Core i7-5820K [email protected] GHZ. Display uses a Gigabyte GTX 460 1Gb VRAM. Octane uses an EVGA GTX 970 4Gb VRAM.
Wallan
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Fri Jan 23, 2015 6:13 pm

Re: Script to create Lua API documentation in html.

Postby stratified » Thu Mar 05, 2015 8:17 pm

stratified Thu Mar 05, 2015 8:17 pm
Hi,

There are 2 versions of the script attached to the first post (create-docs.lua and create-docs_213.lua). I think you're trying to run create-docs.lua on an OctaneRender version higher than 2.13.

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

Re: Script to create Lua API documentation in html.

Postby Wallan » Fri Mar 06, 2015 7:30 pm

Wallan Fri Mar 06, 2015 7:30 pm
You are so very correct on that one :oops:

Thanks
Windows 7 Ultimate 64bit 32Gb RAM. Intel Core i7-5820K [email protected] GHZ. Display uses a Gigabyte GTX 460 1Gb VRAM. Octane uses an EVGA GTX 970 4Gb VRAM.
Wallan
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Fri Jan 23, 2015 6:13 pm
Previous

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 2 guests

Fri Mar 29, 2024 1:45 am [ UTC ]