954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sending variables to a python script from c++

Hi everyone,

i was wondering how it might be possible to send variables from a programme written in c++ to be used in a separate application which is coded in python.

I am using opencv to calculate points of interest in c++. I would then like these resulting co ordinates to be sent to a game engine (blender game engine) to be assigned to specific objects.

I have no experience using python and have never written a C++ program that would need to transmit data in such a fashion. I've been researching possible solutions but I'm unsure of what the correct terminology of what i am trying to do is etc... **N00B**

It would be good if any experienced coders could potentially give me an idea of how i might be able to bridge this gap.

Thanks

kshaaban
Newbie Poster
10 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

Never done it but there's plenty of documentation out there: http://stackoverflow.com/questions/145270/calling-c-c-from-python seems to be loaded with information.

Try searching the Python forum here too, but don't double post your thread, ask for it to be moved (click 'Flag Bad Post') if you think your question is better suited over on that side.

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 

hi jonsca,

i have googled around and found many ways to do this however im a little stuck as to implementing the variables into the blender game engine itself. i think i will search on the game dev side to see if anyone has a solution specific to BGE.

thanks

kshaaban
Newbie Poster
10 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: