Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Corrupted Delta Scaling .blend Files Repair Solution

16

Files saved with svn trunk Blender, between Nov 29 and Dec 4, have a delta scaling issue, which makes objects appear zero scaled. A quick fix was supplied in the most recent Developer Meeting Notes, but David Black proposed a better solution.

I haven't been able to verify this solution - please leave feedback!

David Black writes:

I have just found a method of fully repairing corrupted .blend files caused by the recent delta scaling issues, you need an older version of Blender to perform this fix, from just before the delta scaling problems.

My fix is not the same as the one mentioned several days ago, the original fix only allowed corrupted files to be opened in new versions of Blender, if the file was opened in Blender 2.60a it was obvious that the file is still corrupt, any backwards compatibility was lost.

This method fully repairs the files, so they can be opened in any version of Blender, hence the 2.60a screen shots.

  1. Open your corrupted .blend file in the older version of Blender (I found revision 42181 and revision 42195 works).
  2. In a python console window enter the line below, then press 'Enter' on your keyboard twice.

    for ob in bpy.data.objects: ob.delta_scale = (0,0,0)
  3. Save your fixed .blend file with a different test name.
  4. Test the newly saved .blend file by opening it with Blender 2.60a, everything should appear correctly scaled. The fixed .blend file also displays correctly in new versions of Blender.

This method has worked for me (tested several times) and have now fully restored 5 of my corrupted .blend files.

Hope this is helpful and works for others!

David Black

PS: If anyone needs Blender revision 42195 it is available here.

16 Comments

    • David writes:

      "My fix is not the same as the one mentioned several days ago, the original fix only allowed corrupted files to be opened in new versions of Blender, if the file was opened in Blender 2.60a it was obvious that the file is still corrupt, any backwards compatibility was lost."

    • Hi Patrizio Melis,

      Great to hear it worked for you.
      Wouldn't call myself a coder but thank you for your feedback.

      David

  1. The script that worked for me is:

    import bpyfor OBJECT in bpy.context.scene.objects[:]:    OBJECT.delta_scale = (1,) * 3In your script the scale is set to zero, is correct?

    • Hi Oscurart,

      After applying the fix you mention to a copy of your file, try opening your file with Blender 2.60a, you will see all objects are still scaled incorrectly, the file is interpenetrated for new versions but in effect the file remains corrupt.  The method I mention overcomes this issue and files can once again be opened in any version of Blender showing the correct scaling.

      David

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×