Jump to content

Accessing an external server with Python SOP?


kursad

Recommended Posts

Hi

I am trying to connect Python SOP to an external python socket server (via socket module) under Linux. Would there be any known issues, obstacles for such approach? Basically I want my server to publish some data and get Python SOP to grab some of that data. I did preliminary tests and it seemed like I could not get any real data. At some point the node grabbed very first part of the data but Python SOP did not grab the rest. I am sure it is my basic coding did not get it right. I just wanted to know the issues ahead of the time so that i do not end up wasting alot of time on it.

I am going to look at the network CHOP after this approach. I just want to go ahead with the Python stuff first.

thanks

Link to comment
Share on other sites

There shouldn't be any problem with doing it within a Python SOP. All a Python SOP does is run some code each time the operator cooks. It shouldn't matter if that code builds geometry or reads in data from external sources to do the same or something else entirely. I would suspect there is an issue with your code.

Link to comment
Share on other sites

There shouldn't be any problem with doing it within a Python SOP. All a Python SOP does is run some code each time the operator cooks. It shouldn't matter if that code builds geometry or reads in data from external sources to do the same or something else entirely. I would suspect there is an issue with your code.

Thanks Graham. I think it will work.In Worst case we have the xmlrpc module.

Edited by kursad
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...