Haha. Thanks, I didn't see that in websites. You're brilliant! I forgot to mention that the python module returns a tuple too..
Yours, Boon ---------------------------------------- > From: [email protected] > To: [email protected] > Date: Mon, 5 Apr 2010 22:29:46 +0200 > Subject: Re: [Yade-dev] Interesting python usage > > >> Oh, yes, I didnt do PyRun_SimpleString and pass my arguments as string, >> because the arguments change during run time. The arguments are the id's of >> the bodies, which are currently handled by the Ig2Functor. > You can make string with those ids, like > > string s=string("command(")+lexical_cast(id1)+","+lexical_cast(id2)+");" > PyRun_SimpleString(s.c_str()); > > > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

