sflender fix

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
christiankrupa
Posts: 0
Joined: Wed Feb 11, 2004 8:37 pm

sflender fix

Post by christiankrupa »

I dont know if ive done a good thing, but i think i made the sflender script work with 242 - i just changed the four lines that were giving me errors by limiting the string length to 399 - the maximum stated in the error message, rather than 1024 as it was set....
Last edited by christiankrupa on Wed Aug 09, 2006 5:17 pm, edited 1 time in total.

christiankrupa
Posts: 0
Joined: Wed Feb 11, 2004 8:37 pm

Post by christiankrupa »

damn, seems like the code's too big to fit in a forum box, is there any way to just post a .py file here?

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

if its only 4 lines do a diff.... much eaiser for people to read as well...

christiankrupa
Posts: 0
Joined: Wed Feb 11, 2004 8:37 pm

Post by christiankrupa »

sure, but what is a diff....?

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

http://www.blender3d.org/cms/Using_Patches.142.0.html

Has alot more detail but

basically you want to do: cvs diff -u filename > myfile.diff

(If sflender isn't one of the python scripts in cvs you can use unix's
diff -u filenamenew.py filenameold.py > myfile.diff

where filenamenew.py is your new file and filenameold.py is the old version.

christiankrupa
Posts: 0
Joined: Wed Feb 11, 2004 8:37 pm

Post by christiankrupa »

eek has anybody got a simpler solution to this, i only fixed the script by accident, i know not what or how it's worked, but id like other people to use it. For instance, if anybody has a good file repository, ill gladly email them the .py file and if you link it here or anywhere, anyone who wants to use it or do the 'right' thing with it, can.

cheers

chris

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

feel free to email it to me and I'll make sure it gets taken care of...
mein at cs.umn.edu

Post Reply