Lua scripts in Octane Instance openned from Unity

Forums: Lua scripts in Octane Instance openned from Unity
A public forum for discussing and asking questions about the Octane for Unity Alpha

Moderator: ChrisHekman

Lua scripts in Octane Instance openned from Unity

Postby mmortall » Tue May 21, 2019 5:16 pm

mmortall Tue May 21, 2019 5:16 pm
I was trying to run some lua scripts in Octane Instance opened from Unity Octane Plugin.

But I got errors when running any script. I got Script error related to octane.nodegraph is nil and octane.gui is nil. So I'm not able to use scripts at all.
Is there a limitation to use Lua script in Octane Instance from Unity? Because I see the Script menu item and a way to run them.

Her is my script test code:
Code: Select all
dialogProperties =
{
   type  = octane.gui.dialogType.ERROR_DIALOG,
   title = "Test Title",
   text  = string.format("Test Text")
}

octane.gui.showDialog(dialogProperties)

scene = octane.nodegraph.getRootGraph()


Thanks
mmortall
 
Posts: 11
Joined: Mon Jun 18, 2018 11:46 am

Re: Lua scripts in Octane Instance openned from Unity

Postby mmortall » Thu May 30, 2019 5:30 pm

mmortall Thu May 30, 2019 5:30 pm
Hi. It there any news about it? Thanks
mmortall
 
Posts: 11
Joined: Mon Jun 18, 2018 11:46 am

Re: Lua scripts in Octane Instance openned from Unity

Postby tombube » Thu Nov 12, 2020 2:01 pm

tombube Thu Nov 12, 2020 2:01 pm
Hi, any news about this? We currently avoid using lua scripts inside Octane Unity and always export to an ORBX file to run lua scripts on, so it would be useful to have official support for running scripts inside Unity Octane instance (and also an option to start the Lua script using C#)
tombube
 
Posts: 9
Joined: Thu Sep 05, 2019 1:51 pm

Return to Octane for Unity


Who is online

Users browsing this forum: No registered users and 1 guest

Sat Mar 30, 2024 8:58 am [ UTC ]