UDP Luasocket

Forums: UDP Luasocket
Forum for OctaneRender Lua scripting examples, discussion and support.

UDP Luasocket

Postby parsa021021 » Tue Oct 13, 2015 5:02 am

parsa021021 Tue Oct 13, 2015 5:02 am
Does anyone know anything about UDP Luasocket? Is it even possible in OctaneRender?
I don't know anything about Lua scripting. Only python!
parsa021021
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Feb 02, 2015 10:13 am

Re: UDP Luasocket

Postby Goldorak » Tue Oct 13, 2015 5:35 am

Goldorak Tue Oct 13, 2015 5:35 am
Any native API call, including sockets, is possible using FFI in global scripts.
User avatar
Goldorak
OctaneRender Team
OctaneRender Team
 
Posts: 1927
Joined: Sun Apr 22, 2012 8:09 pm

Re: UDP Luasocket

Postby haze » Tue Oct 13, 2015 7:07 pm

haze Tue Oct 13, 2015 7:07 pm
I haven't given it a try, but maybe lunatic-python might be useful - do most of your work in Python rather than Lua
User avatar
haze
OctaneRender Team
OctaneRender Team
 
Posts: 801
Joined: Sun Feb 08, 2015 8:57 pm

Re: UDP Luasocket

Postby abstrax » Tue Oct 13, 2015 8:43 pm

abstrax Tue Oct 13, 2015 8:43 pm
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5102
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: UDP Luasocket

Postby parsa021021 » Tue Oct 13, 2015 10:42 pm

parsa021021 Tue Oct 13, 2015 10:42 pm
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!
parsa021021
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Feb 02, 2015 10:13 am

Re: UDP Luasocket

Postby parsa021021 » Tue Oct 13, 2015 10:55 pm

parsa021021 Tue Oct 13, 2015 10:55 pm
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!
parsa021021
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Feb 02, 2015 10:13 am

Re: UDP Luasocket

Postby Goldorak » Tue Oct 13, 2015 11:31 pm

Goldorak Tue Oct 13, 2015 11:31 pm
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.
User avatar
Goldorak
OctaneRender Team
OctaneRender Team
 
Posts: 1927
Joined: Sun Apr 22, 2012 8:09 pm

Re: UDP Luasocket

Postby parsa021021 » Wed Oct 14, 2015 2:13 pm

parsa021021 Wed Oct 14, 2015 2:13 pm
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!
parsa021021
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Feb 02, 2015 10:13 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

Wed Nov 13, 2019 2:13 pm [ UTC ]