Large Python scripts SLOW (loading and running)

frank
Senior Chief Petty Officer
Posts: 161
Joined: 28 May 2009, 13:25

Large Python scripts SLOW (loading and running)

Post by frank »

Any of you guys know of a way around trueSpace6 (or 7) taking a WHIIIIILE to load long python scripts?

This is a python file exported from SynthEyes. They normally take a bit to load - no matter which computer I use, there's always a delay.
((my theory is it has something to do with tS taking a while to run down the script and color the source code))

But on an average file, this is no problem as the shots I track are generally a few seconds long so it will eventually finish. THEN it's just a matter of waiting a bit after you click play for the script to RUN. (This part isn't the fastest, but it's a lot faster than waiting on tS Python to load and color the script.)

Right now I'm waiting for trueSpace to load the script for a shot that's over 700 frames long... and it has been "not responding" for close to an hour now.

Any ideas on something I may be able to toggle/disable within Python so stuff can load normally?
User avatar
Draise
Captain
Posts: 3200
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Re: Large Python scripts SLOW (loading and running)

Post by Draise »

Good question! And welcome to the Forum Frank!

I too find TS to be a little laggy when it comes to some scripts. The inner tubes of TS apparently are a little messy codewise. I haven't worked with Python tho, so not sure I could help you.

I think a "cancel all scripts" button would make TS so much less buggy. Great Idea

I'll look into it..
frank
Senior Chief Petty Officer
Posts: 161
Joined: 28 May 2009, 13:25

Re: Large Python scripts SLOW (loading and running)

Post by frank »

Thank you, Draise!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Large Python scripts SLOW (loading and running)

Post by clintonman »

If you're loading the script in the editor and then running it maybe you can try using the run script button. Just a wild guess.
Clinton Reese

http://clintons3d.com

Return to “General Discussion”