Page 1 of 1

UDP Luasocket

PostPosted: Tue Oct 13, 2015 5:02 am
by parsa021021
Does anyone know anything about UDP Luasocket? Is it even possible in OctaneRender?
I don't know anything about Lua scripting. Only python!

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 5:35 am
by Goldorak
Any native API call, including sockets, is possible using FFI in global scripts.

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 7:07 pm
by haze
I haven't given it a try, but maybe lunatic-python might be useful - do most of your work in Python rather than Lua

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 8:43 pm
by abstrax

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 10:42 pm
by parsa021021
mist wrote:I haven't given it a try, but maybe lunatic-python might be useful - do most of your work in Python rather than Lua

Lunatic Python seems quite interesting but I'm assuming Octane only reads Lua file so what I should be looking for is integration of Python inside Lua via Lunatic Python which requires understanding of Lua scripting in the first place. I don't know anything about it.
Is there going to be a Python interpreter inside Ocatance 3 in future? That would be epic!

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 10:55 pm
by parsa021021
abstrax wrote:See viewtopic.php?f=73&t=46644

I'm a architecture student and trying to bring in point coordinates but hopefully some mesh surfaces from Rhino3D's Grasshopper to Octane Render via UDP so they become lively interactive inside Octane. But Lua seems alien to me. This also could be really exciting for OctaneVR in future...........
I wish Octane would support Python. I don't have time to learn Lua!

Re: UDP Luasocket

PostPosted: Tue Oct 13, 2015 11:31 pm
by Goldorak
parsa021021 wrote:
abstrax wrote:See viewtopic.php?f=73&t=46644

I'm a architecture student and trying to bring in point coordinates but hopefully some mesh surfaces from Rhino3D's Grasshopper to Octane Render via UDP so they become lively interactive inside Octane. But Lua seems alien to me. This also could be really exciting for OctaneVR in future...........
I wish Octane would support Python. I don't have time to learn Lua!


Lua FFI library can be used to load ANY C library into lua, just like Python or JS Ctypes, and this could even be a C interface to Python itself.

Re: UDP Luasocket

PostPosted: Wed Oct 14, 2015 2:13 pm
by parsa021021
Goldorak wrote:
parsa021021 wrote:
abstrax wrote:See viewtopic.php?f=73&t=46644

I'm a architecture student and trying to bring in point coordinates but hopefully some mesh surfaces from Rhino3D's Grasshopper to Octane Render via UDP so they become lively interactive inside Octane. But Lua seems alien to me. This also could be really exciting for OctaneVR in future...........
I wish Octane would support Python. I don't have time to learn Lua!


Lua FFI library can be used to load ANY C library into lua, just like Python or JS Ctypes, and this could even be a C interface to Python itself.


Well it's pretty cool but it still requires knowing Lua to do this which I don't have any idea. I think there is no way I can start scripting for Octane by just knowing Python. I wish there was a way around that. :( I don't understand why Otoy wouldn't support Python. Most of the visual artists are using Python in modelling packages. That would be huge for Octane!