Saving with Python in blender 2.49?

hi, i have another question, so far i know about ReplaceMesh to make a character creator in blender. i want to get what i create on the menu into a different scene so i can use it. i know that you just make it visible etc. so far i also know that you can save what you make then load it when you get to that scene. How do i do this in 2.49 using python ?

Saving:


file = open("yoursave.txt",'w')
file.write("Exampel1
")
file.write("Exampel2
")
file.write("Exampel3
")
file.close()

Reading:


file = open("yoursave.txt",'r')

line1 = file.readline()
line2 = file.readline()
line3 = file.readline()

line1 = line1.rstrip("
")
line2 = line2.rstrip("
")
line3 = line3.rstrip("
")

#Example

print(line1)

file.close()

Remember, it wont work until you saved it in a blendfile.

thank you, ill try if it works later today.

Save:

  1. Store all data in a dict (meshname, objectname, property names and values).
  2. Pickle it.
  3. Save it to file.

Load

  1. Read a file.
  2. Unpickle it to a dictionary.
  3. Get all Data from the dictionary.

here is the test file i used. nothing come up but in the module it says “Exampel1”.

Attachments

Anime character.blend (202 KB)

can anyone help me please?