|
Hi,
I have a scripthat is loaded in the scene. I am running a different scrip and would like to execute the scripthat is already loaded in. How do I do that?
Thank you, Al.
|
|
|
|
In the class FBApplication, there is a function called ‘ExecuteScript’, this is used to execute a python script file. you can use this function to re-trigger your script..I hope that’s what your asking I am a little confused by your question,
~Kristine
KRISTINE MIDDLEMISS | DEVELOPER CONSULTANT
AUTODESK Media & Entertainment
|
|
|
|
If you want to execute a script in multiple places and not use the open reality sdk, you could copy your code into a separate python file as a function, place this new file in your pythonpath folder (see the python documentation) and then you should be able to call it from multiple places.
|
|
|
Kristine Middlemiss 02 March 2010 04:37 PM
In the class FBApplication, there is a function called ‘ExecuteScript’, this is used to execute a python script file. you can use this function to re-trigger your script..I hope that’s what your asking I am a little confused by your question,
~Kristine
I have an FBX file that has a python scrip in it. I load in that scene using another script, and I want to trigger the script in that loaded file from the script that loads the file. It looks like ExecuteScript only executes a script has a file path to it.
|
|
|