Document licensed Tesla revision and daylight Unreal walkthrough
This commit is contained in:
9
source/samford-v008-tesla/verify_saved_blender.py
Normal file
9
source/samford-v008-tesla/verify_saved_blender.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import bpy,json
|
||||
from pathlib import Path
|
||||
P=Path(__file__).resolve().parents[1]
|
||||
def snap():
|
||||
c=bpy.data.collections['22 PLAY - guided camera tour'];s=bpy.context.scene
|
||||
return {'captions':{o.name:o.data.body for o in c.objects if o.type=='FONT'},'frame_range':[s.frame_start,s.frame_end],'camera':s.camera.name,'markers':[(m.name,m.frame) for m in s.timeline_markers]}
|
||||
bpy.ops.wm.open_mainfile(filepath=str(P/'base/samford-solarpunk-presentation-tour.blend'),use_scripts=False);a=snap()
|
||||
bpy.ops.wm.open_mainfile(filepath=str(P/'samford-solarpunk-tesla-v008.blend'),use_scripts=False);b=snap();assert a==b,('Tour changed',a,b)
|
||||
p=P/'blender-final-verification.json';r=json.loads(p.read_text());r['tour_chapters']=len(b['captions']);r['tour_matches_v007_exactly']=True;r['saved_file_reopened']=True;p.write_text(json.dumps(r,indent=2));print('SAVED_BLEND_VERIFIED',len(b['captions']))
|
||||
Reference in New Issue
Block a user