def end_card(self): logo = svg_bobject.SVGBobject( "UCSF_logo", #location = (-5, 3.75, 0), #Centered position #scale = 0.26, #Centered scale location=[0, 0, 0], scale=0.121, color='color2', #centered = True, ) baf = svg_bobject.SVGBobject( 'BaFC_Arial', location=[5.2257280349731445, -0.26257357001304626, 0.0], scale=2.23, color='color2', #centered = True, ) logobaf = bobject.Bobject( logo, baf, location=[-11.57, 2.5, 0], #location = [0, 1.5, Z0], scale=0.852, #centered = True ) logobaf.add_to_blender( appear_time=0, animate=False, ) url = tex_bobject.TexBobject( '\\text{ohns.ucsf.edu/otology-neurotology/balance-and-falls}', location=[0, 0.8, 0], color='color2', name='url', typeface='arial', scale=0.8, centered=True) url.add_to_blender(appear_time=0) mpb_loc = [1, -4.25, 0] mpb = tex_bobject.TexBobject('\\text{Made possible by:}', location=mpb_loc, color='color2', name='mpb', typeface='arial') mzhf = tex_bobject.TexBobject( '\\text{Mount Zion Health Fund}', color='color2', scale=1.2, location=[mpb_loc[0] + 0.5, mpb_loc[1] - 1.4, mpb_loc[2]], name='mzhf', typeface='arial') vpb_loc = [-13, -4.25, 0] vpb = tex_bobject.TexBobject('\\text{Video produced by:}', color='color2', location=vpb_loc, name='vpb', typeface='arial') jh = tex_bobject.TexBobject( '\\text{Justin Helps}', location=[vpb_loc[0] + 0.5, vpb_loc[1] - 1.4, vpb_loc[2]], scale=1.2, color='color2', name='jh', typeface='arial') jds = tex_bobject.TexBobject( '\\text{Jeffrey D. Sharon, MD}', location=[vpb_loc[0] + 0.5, vpb_loc[1] - 2.8, vpb_loc[2]], scale=1.2, color='color2', name='jds', typeface='arial') for bobj in [mpb, mzhf, vpb, jh, jds]: bobj.add_to_blender(appear_time=0, animate=False)
def intro_card(self): logo = svg_bobject.SVGBobject( "UCSF_logo_signature", #location = (-5, 3.75, 0), #Centered position #scale = 0.26, #Centered scale location=[-10.675, -6.3, 0], scale=0.128, color='color2', centered=True) baf = svg_bobject.SVGBobject('BaFC_Arial', location=[4.325, -5.2, 0], scale=1.85, color='color2', centered=True) vest = svg_bobject.SVGBobject('vestibular_videos_garamond', location=[0, 4.5, 0], scale=2, color='color2', centered=True) intro = svg_bobject.SVGBobject('IntroToBPPV_Garamond', location=[0, 1.5, 0], scale=3.14, color='color2', centered=True) vert = tex_bobject.TexBobject( '|', location=[-6.35, -4.74, 0], scale=[2, 5.32, 4], centered=True, color='color2', ) logo.add_to_blender(appear_time=-1, animate=False) baf.add_to_blender(appear_time=-1, animate=False) vest.add_to_blender(appear_time=-1, animate=False) intro.add_to_blender(appear_time=-1, animate=False) vert.add_to_blender(appear_time=-1, animate=False) for bobj in [logo, baf, vest, vert]: for handle in bobj.ref_obj.children: print(handle.name) print(handle.children[0].name) #For some reason, some handles have extra children try: fade(object=handle.children[0], start_time=0, duration_time=1, fade_out=False) except: pass for bobj in [intro]: for handle in bobj.ref_obj.children: print(handle.name) print(handle.children[0].name) #For some reason, some handles have extra children try: fade(object=handle.children[0], start_time=2, duration_time=1, fade_out=False) except: pass
def end_card(self): cues = self.subscenes scene_end = self.duration bpy.ops.mesh.primitive_plane_add() play_bar = bpy.context.object play_bar.scale[0] = 15 play_bar.scale[1] = 90 / 720 * 8.4 play_bar.location = [0, -8.4 + play_bar.scale[1], -0.01] bpy.ops.mesh.primitive_plane_add() vid_rec = bpy.context.object vid_rec.scale[0] = 410 / 1280 * 15 vid_rec.scale[1] = 230 / 720 * 8.4 vid_rec.location = [9, -3, -0.01] apply_material(vid_rec, 'color6') bpy.ops.mesh.primitive_cylinder_add() sub_cir = bpy.context.object sub_cir.scale = [98 / 1280 * 30, 98 / 1280 * 30, 0] sub_cir.location = [-11, 3.2, -0.01] #Whole end area bpy.ops.mesh.primitive_plane_add() end_area = bpy.context.object end_area.scale[0] = 1225 / 1280 * 15 end_area.scale[1] = 518 / 720 * 8.4 end_area.location = [0, 0.2, -0.15] logo = svg_bobject.SVGBobject( "Layer", #file_name = "PrimerLogoWhite", location=(-8.7, 3, 0), scale=1.4) for bobj in logo.rendered_curve_bobjects: apply_material(bobj.ref_obj.children[0], 'color2') stroke = logo.rendered_curve_bobjects[0] apply_material(stroke.ref_obj.children[0], 'color3') logo.morph_chains[0][0].ref_obj.location[2] = -1 logo.add_to_blender( appear_time=cues['card']['start'], #subbobject_timing = [90, 30, 40, 50, 60, 70, 80], subbobject_timing=[42, 30, 33, 36, 39, 42, 45], animate=True) patreon = import_object('patreon', 'svgblend', scale=2.297, location=(-11, -3, 0), name='Patreon') patreon.add_to_blender(appear_time=0) thanks = tex_bobject.TexBobject('\\text{Special thanks:}', location=[-8.35, -1.4, 0], color='color2') thanks.add_to_blender(appear_time=0) js = tex_bobject.TexBobject('\\text{Jordan Scales}', location=[-7.8, -2.75, 0], color='color2', scale=1) js.add_to_blender(appear_time=0.5) ap = tex_bobject.TexBobject('\\text{Anonymous Patrons}', location=[-7.8, -4, 0], color='color2', scale=1) ap.add_to_blender(appear_time=0.75) remaining = [logo, patreon, thanks, js, ap] for thing in remaining: thing.disappear(disappear_time=2.5)
def banner_angled(self): cam_bobj, cam_swivel = cam_and_swivel( cam_location=[0, 0, 32.8], cam_rotation_euler=[0, 0, 0], cam_name="Camera Bobject", swivel_location=[0, 0, 0], swivel_rotation_euler=[70 * math.pi / 180, 0, 0], swivel_name='Cam swivel', control_sun=True) cam_swivel.add_to_blender(appear_time=-1) logo = svg_bobject.SVGBobject( "Layer", #file_name = "PrimerLogoWhite", location=[0, 0, 0], rotation_euler=[math.pi / 2, 0, 0], scale=4, centered=True) for bobj in logo.rendered_curve_bobjects: apply_material(bobj.ref_obj.children[0], 'color2') stroke = logo.rendered_curve_bobjects[0] apply_material(stroke.ref_obj.children[0], 'color3') logo.morph_chains[0][0].ref_obj.location[2] = -1 logo.add_to_blender( appear_time=-1, #subbobject_timing = [90, 30, 40, 50, 60, 70, 80], #subbobject_timing = [42, 30, 33, 36, 39, 42, 45], animate=False) b_blob = import_object('boerd_blob', 'creatures', scale=2, location=[2, -10, 0], rotation_euler=[math.pi / 2, 0, 0], wiggle=True) b_blob.add_to_blender(appear_time=0) apply_material(b_blob.ref_obj.children[0].children[0], 'creature_color3') r_blob = import_object( 'boerd_blob', 'creatures', scale=2, location=[-7, -7, 0], rotation_euler=[math.pi / 2, 0, 100 * math.pi / 180], wiggle=True) r_blob.add_to_blender(appear_time=0) apply_material(r_blob.ref_obj.children[0].children[0], 'creature_color6') g_blob = import_object( 'boerd_blob', 'creatures', scale=2, location=[-5, -5, 0], rotation_euler=[math.pi / 2, 0, -10 * math.pi / 180], wiggle=True) g_blob.add_to_blender(appear_time=0) apply_material(g_blob.ref_obj.children[0].children[0], 'creature_color7') o_blob = import_object('boerd_blob', 'creatures', scale=2, location=[10, -6, 0], rotation_euler=[math.pi / 2, 0, math.pi / 2], wiggle=True) o_blob.add_to_blender(appear_time=0) apply_material(o_blob.ref_obj.children[0].children[0], 'creature_color4')
def banner(self): cam_bobj, cam_swivel = cam_and_swivel( cam_location=[0, 0, 32.8], cam_rotation_euler=[0, 0, 0], cam_name="Camera Bobject", swivel_location=[0, 0, 0], swivel_rotation_euler=[0, 0, 0], swivel_name='Cam swivel', #control_sun = True ) cam_swivel.add_to_blender(appear_time=-1) logo = svg_bobject.SVGBobject( "Layer", #file_name = "PrimerLogoWhite", location=[0, 0, 0], rotation_euler=[0, 0, 0], scale=2, centered=True) for bobj in logo.rendered_curve_bobjects: apply_material(bobj.ref_obj.children[0], 'color2') stroke = logo.rendered_curve_bobjects[0] apply_material(stroke.ref_obj.children[0], 'color3') logo.morph_chains[0][0].ref_obj.location[2] = -1 logo.add_to_blender( appear_time=-1, #subbobject_timing = [90, 30, 40, 50, 60, 70, 80], #subbobject_timing = [42, 30, 33, 36, 39, 42, 45], animate=False) b_blob = import_object('boerd_blob', 'creatures', scale=2, location=[-9, 0, 0], rotation_euler=[0, 20 * math.pi / 180, 0]) b_blob.add_to_blender(appear_time=0, animate=False) apply_material(b_blob.ref_obj.children[0].children[0], 'creature_color3') b_blob.hello(start_time=2, end_time=8) r_blob = import_object( 'boerd_blob', 'creatures', scale=2, location=[12.5, 0, 0], rotation_euler=[0, 0, 0], #wiggle = True ) r_blob.add_to_blender(appear_time=0, animate=False) apply_material(r_blob.ref_obj.children[0].children[0], 'creature_color6') r_blob.evil_pose(start_time=6, end_time=10) g_blob = import_object('boerd_blob', 'creatures', scale=2, location=[9, 0, 0], rotation_euler=[0, -10 * math.pi / 180, 0], wiggle=True, cycle_length=600) g_blob.add_to_blender(appear_time=0, animate=False) apply_material(g_blob.ref_obj.children[0].children[0], 'creature_color7') o_blob = import_object( 'boerd_blob', 'creatures', scale=2, location=[-12.5, 0, 0], rotation_euler=[0, 0, 0], #wiggle = True ) o_blob.add_to_blender(appear_time=0, animate=False) apply_material(o_blob.ref_obj.children[0].children[0], 'creature_color4')
def intro_card(self): logo = svg_bobject.SVGBobject( "UCSF_logo_signature", #location = (-5, 3.75, 0), #Centered position #scale = 0.26, #Centered scale location=[-10.675, -6.3, 0], scale=0.128, color='color1', centered=True) baf = svg_bobject.SVGBobject('BaFC_Arial', location=[4.325, -5.2, 0], scale=1.85, color='color1', centered=True) vest = tex_bobject.TexBobject('\\text{Vestibular Videos:}', location=[0, 4.5, 0], scale=2, color='color1', centered=True, typeface='garamond') title = tex_bobject.TexBobject( #'\\text{How The Vestibular System Works}', #'\\text{Dizziness as we age}', #'\\text{The Video Head Impulse Test}', #'\\text{The Rotary Chair Test}', #'\\text{The VEMP Test}', #'\\text{Videonystagmography}', #'\\text{Vestibular Physical Therapy}', '\\text{Vestibular Evoked}', location=[0, 0.75, 0], scale=3, color='color1', centered=True, typeface='garamond') title2 = tex_bobject.TexBobject( #'\\text{How The Vestibular System Works}', #'\\text{Dizziness as we age}', #'\\text{The Video Head Impulse Test}', #'\\text{The Rotary Chair Test}', #'\\text{The VEMP Test}', #'\\text{Videonystagmography}', #'\\text{Vestibular Physical Therapy}', '\\text{Myogenic Potential Test}', location=[0, 0.75, 0], scale=3, color='color1', centered=True, typeface='garamond') title3 = tex_bobject.TexBobject( #'\\text{How The Vestibular System Works}', #'\\text{Dizziness as we age}', #'\\text{The Video Head Impulse Test}', #'\\text{The Rotary Chair Test}', #'\\text{The VEMP Test}', #'\\text{Videonystagmography}', #'\\text{Vestibular Physical Therapy}', '\\text{(VEMP Test)}', location=[0, 0.75, 0], scale=2, color='color1', centered=True, typeface='garamond') vert = tex_bobject.TexBobject( '|', location=[-6.35, -4.74, 0], scale=[2, 5.32, 4], centered=True, color='color1', ) logo.add_to_blender(appear_time=-1, animate=False) baf.add_to_blender(appear_time=-1, animate=False) vest.add_to_blender(appear_time=-1, animate=False) title.add_to_blender(appear_time=-1, animate=False) title2.add_to_blender(appear_time=-1, animate=False) title3.add_to_blender(appear_time=-1, animate=False) vert.add_to_blender(appear_time=-1, animate=False) for bobj in [logo, baf, vest, vert]: for handle in bobj.ref_obj.children: print(handle.name) print(handle.children[0].name) #For some reason, some handles have extra children try: fade(object=handle.children[0], start_time=0, duration_time=1, fade_out=False) except: pass for bobj in [title]: for handle in bobj.ref_obj.children: print(handle.name) print(handle.children[0].name) #For some reason, some handles have extra children try: fade(object=handle.children[0], start_time=2, duration_time=1, fade_out=False) except: pass
def dftba_banner(self): cam_bobj, cam_swivel = cam_and_swivel( cam_location = [0, 0, 32.8], cam_rotation_euler = [0, 0, 0], cam_name = "Camera Bobject", swivel_location = [0, 0, 0], swivel_rotation_euler = [70 * math.pi / 180, 0, 0], swivel_name = 'Cam swivel', control_sun = True ) cam_swivel.add_to_blender(appear_time = -1) scn = bpy.context.scene scn.render.tile_y = RENDER_TILE_SIZE scn.render.resolution_x = 1300 scn.render.resolution_y = 875 logo = svg_bobject.SVGBobject( "Layer", #file_name = "PrimerLogoWhite", location = [0, 1.5, 4], rotation_euler = [74 * math.pi / 180, 0, 0], scale = 4, centered = True ) for bobj in logo.rendered_curve_bobjects: apply_material(bobj.ref_obj.children[0], 'color2') stroke = logo.rendered_curve_bobjects[0] apply_material(stroke.ref_obj.children[0], 'color3') logo.morph_chains[0][0].ref_obj.location[2] = -1 logo.add_to_blender( appear_time = -1, #subbobject_timing = [90, 30, 40, 50, 60, 70, 80], #subbobject_timing = [42, 30, 33, 36, 39, 42, 45], animate = False ) b_blob = blobject.Blobject( scale = 2, location = [1, -10, 0], rotation_euler = [math.pi / 2, 0, 0], #wiggle = True ) b_blob.add_to_blender(appear_time = 0) apply_material(b_blob.ref_obj.children[0].children[0], 'creature_color3') r_blob = blobject.Blobject( scale = 2, location = [-5, -7, 0], rotation_euler = [math.pi / 2, 0, -10 * math.pi / 180], wiggle = True ) r_blob.add_to_blender(appear_time = 0) apply_material(r_blob.ref_obj.children[0].children[0], 'creature_color6') g_blob = blobject.Blobject( scale = 2, location = [-7, -9, 0], rotation_euler = [math.pi / 2, 0, 100 * math.pi / 180], wiggle = True ) g_blob.add_to_blender(appear_time = 0) apply_material(g_blob.ref_obj.children[0].children[0], 'creature_color7') o_blob = blobject.Blobject( scale = 2, location = [8, -6, 0], rotation_euler = [math.pi / 2, 0, -50 * math.pi / 180], #wiggle = True ) o_blob.add_to_blender(appear_time = 0) apply_material(o_blob.ref_obj.children[0].children[0], 'creature_color4') b_blob.hello( start_time = 1, end_time = 10 ) '''b_blob.eat_animation( start_frame = 1 * FRAME_RATE, end_frame = 10 * FRAME_RATE, attack_frames = 0.5 * FRAME_RATE, decay_frames = 0.5 * FRAME_RATE )''' b_blob.show_mouth( start_time = 1, #end_time = 10 ) r_blob.angry_eyes( start_time = 0 ) o_blob.eat_animation( start_frame = 1 * FRAME_RATE, end_frame = 10 * FRAME_RATE, attack_frames = 0.5 * FRAME_RATE, decay_frames = 0.5 * FRAME_RATE ) o_blob.blob_scoop( start_time = 1, duration = 10 ) food = import_object( 'goodicosphere', 'primitives', location = [-0.05, 0.25, 1], scale = 0.1, mat = 'color7' ) food.ref_obj.parent = o_blob.ref_obj food.add_to_blender(appear_time = 0) '''floor = import_object(