Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Script editor with syntax highlighting and more
  RSS 2.0 ATOM  
19 pages: 5.6.7.8.9.10.19 first last

Script editor with syntax highlighting and more
Rate this thread
 
30199
 
Permlink of this thread   Subscribe to this thread
avatar
  • Megavotch
  • Posted: 15 December 2008 11:53 AM

Hello saajjj, Thanks for developing this script editor integration in XSI. My eyeballs are much obliged.

I do have one question. Is it possible to set intends as “Tabs” instead of 4 spaces. Most of my existing code has tab indents and python is particularly sensitive about these types of things.

Votch Levi



Replies: 0
avatar

Don’t know, if this might help (but you’ve probably found it yourself already.
If so, “respectfully” ignore this post! :)):
Unofficial (Preliminary) HTML Help Specification



The “other” Softimage community: si-community.com

Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 08:02 PM

Megavotch,
Thanks for the support :) There is a ‘Tab Indent’ drop down box in the Preferences box (accessed by clicking on the ‘[B]#[/B]’ button). Feel free to set the Tab size there. Although Python is particular about indents, it’s also quite smart in how the code is interpreted. You don’t ‘need’ tabs per se, one space will do as well as long as you’re consistent with the code. (One space of course doesn’t make for very readible code).

if 1:
 
Application.LogMessage("A");

The above is perfectly valid for a Python interpreter.

Hirazi,
That link looks interesting! Thanks. I’ll have a closer look at it when home.

Cheers,



Replies: 0
avatar

Looks there is some big bug with memory leak :(
Have one script on tab1 (opened from file) and secons on tab2 (started from scratch), when tried to switch from tab2 to tab1 - CPU usage on one core jump to max, XSI hangs and start to consuming more and more memory (actually raise to 1GB from about 300MB before I reset him).

XSI 7.01 x64



Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 09:21 PM

Megavoth,
I just noticed you said add tabs instead of spaces. The above explanation still holds. Internally I do add tabs, but the caret won’t ‘jump’ across the tab. Please let me know if this causes you execution grief (it shouldn’t). It would be best if you could mail me an ‘affected’ python file, so I can examine the case as you see it.

Cheers,



Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 09:23 PM

Streaker,
Hmm, that’s not good. I’ll have to explore this further.



Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 09:29 PM

Streaker,
I’ve opened long scripts in all tabs, waiting for magic to happen :-) Although I’m on 7.0 x64 at work (not 7.01). If it’s a memory leak in ScriptEd, XSI should still crash.

Can anyone else please post, if they experience similar issues.

Edit: Streaker, this might be completely disconnected, but Windows Live Messenger on x64 is known to slowly take more cpu cycles as time passes. (After an hour it was permanently hogging 13% of my cpu, at that stage I killed it).



Replies: 0
avatar

Tried again to ensure this is not accident (well a little different case) and get the same result. On tab1 new script (not saved), on tab2 new script (also not saved), switching from tab2 to tab1 - same results as previous:
tmgr.jpg
and again: it ate 2GB of RAM before killed it.
PS. don’t use windows messenger at all, in fact setted group policy for messenger to ‘do not allow to run’



Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 10:42 PM

This is strange,
I’ve had 4 scripts open for well over an hour now, XSI is running fine. Memory footprint is stable and as expected, also not killing the cpus.

How long do you have to wait before this happens? Also, can you please paste the contents of the ‘prefs.ini’ file here (it’s in the same folder where ScriptEd is installed). Thanks.



Replies: 0
avatar
  • saajjj
  • Posted: 15 December 2008 10:47 PM

Since you’ve managed to repeat the issue, could you perhaps tell me exactly what you did (step by step) so I can do the same at my end? Are you using the ScriptEd layout or a floating window?



Replies: 0
19 pages: 5.6.7.8.9.10.19 first last




   
  Settings Choose Theme color: