kursad Posted June 17, 2011 Share Posted June 17, 2011 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 Quote Link to comment Share on other sites More sharing options...
graham Posted June 17, 2011 Share Posted June 17, 2011 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. Quote Link to comment Share on other sites More sharing options...
kursad Posted June 18, 2011 Author Share Posted June 18, 2011 (edited) 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 June 18, 2011 by kursad Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.