Jump to content

Not getting variables back


tgarcia

Recommended Posts

I'm working on a system that requires a good bit of interaction with a database. To get the data, I'm using python scripts, but I'm having problems getting anything back into IVM.

 

I've boiled this all down to a very simple script. I have a python script that returns a number. It's output is:

num=7

Nothing else - just that. I've even removed the random part for now to keep the script as simple as possible.

 

I have an OGM called getnum. The message says "getting number". In "Advanced", I have checked "Run another executable of IVM plugin". In that, I have 'getnum.py' indicated. "End of the Message" is set with "Go To OGM" directing to saynum. The message in saynum is "The number is %num%"

 

When I run this, I get "The number is" - %num% is never set. The logs show that getnum.py IS being run - but 'num' never gets set. What I need to know is - how do I SET %num% from the output of getnum.py?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...