Message 1 of 1
Python global function
Not applicable
09-15-2017
06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
First time here, and I was curious. I'm trying to pass functions and variables from 1 script to another. I know that the proper way would be to import the module and so forth... but I really need a function to be global.
We're trying to have a python script run every frame and we'd like to skip some import parts for optimisation. I know in max we could just do global whatever = waheveter function() and then be able to call this function from anywhere in Max. But I've been unable to do this in python with mobu since (correct me if im wrong) but all python scripts have their own environnement.