|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| Script editor with syntax highlighting and more
|
|
|
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
|
|
|
|
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
|
|
|
|
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,
|
|
|
|
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
|
|
|
|
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,
|
|
|
|
Streaker,
Hmm, that’s not good. I’ll have to explore this further.
|
|
|
|
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).
|
|
|
|
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:

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’
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
| Settings
| Choose Theme color:
|
|
|
|
|
|
|
|
|