Python global function

Python global function

Anonymous
Not applicable
469 Views
0 Replies
Message 1 of 1

Python global function

Anonymous
Not applicable

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.

 

 

 

 

0 Likes
470 Views
0 Replies
Replies (0)