def execute(self, context): owm_types.update_data() t = datetime.now() bpyhelper.LOCK_UPDATE = False try: import_owmat.read(self.filepath, '') except KeyboardInterrupt: bpyhelper.LOCK_UPDATE = False print('Done. SMPTE: %s' % (smpte_from_seconds(datetime.now() - t))) return {'FINISHED'}
def execute(self, context): settings = owm_types.OWSettings(self.filepath, self.uvDisplX, self.uvDisplY, self.autoIk, self.importNormals, self.importEmpties, self.importMaterial, self.importSkeleton, self.importColor) owm_types.update_data() t = datetime.now() bpyhelper.LOCK_UPDATE = False try: import_owmdl.read(settings) except KeyboardInterrupt: bpyhelper.LOCK_UPDATE = False print('Done. SMPTE: %s' % (smpte_from_seconds(datetime.now() - t))) return {'FINISHED'}
def execute(self, context): settings = owm_types.OWSettings(self.filepath, 0, 0, True, True, True, True, True, True, True) efct_settings = owm_types.OWEffectSettings( settings, self.filepath, self.force_framerate, self.target_framerate, self.import_dmce, self.import_cece, self.import_nece, self.import_svce, self.svce_line_seed, self.svce_sound_seed, self.import_camera, self.cleanup_hardpoints) owm_types.update_data() t = datetime.now() bpyhelper.LOCK_UPDATE = False try: import_oweffect.read(efct_settings) except KeyboardInterrupt: bpyhelper.LOCK_UPDATE = False print('Done. SMPTE: %s' % (smpte_from_seconds(datetime.now() - t))) return {'FINISHED'}
def execute(self, context): settings = owm_types.OWSettings( self.filepath, self.uvDisplX, self.uvDisplY, self.autoIk, self.importNormals, True, # self.importEmpties self.importMaterial, True, # self.importSkeleton self.importColor, self.autoSmoothNormals) owm_types.load_data() t = datetime.now() bpyhelper.LOCK_UPDATE = False try: import_owentity.read(settings, self.import_children) except KeyboardInterrupt: bpyhelper.LOCK_UPDATE = False import_owmat.cleanup() print('Done. SMPTE: %s' % (smpte_from_seconds(datetime.now() - t))) return {'FINISHED'}
def execute(self, context): settings = owm_types.OWSettings(self.filepath, self.uvDisplX, self.uvDisplY, False, self.importNormals, False, self.importMaterial, False, self.importColor) light_settings = owm_types.OWLightSettings( self.importLights, self.multipleImportance, [self.importLampSun, self.importLampSpot, self.importLampPoint], [self.adjustLightValue, self.adjustLightStrength], self.useLightStrength, self.shadowSoftBias, [self.lightIndex, self.edgeIndex, self.sizeIndex]) owm_types.update_data() t = datetime.now() bpyhelper.LOCK_UPDATE = False try: import_owmap.read(settings, self.importObjects, self.importDetails, self.importPhysics, light_settings, self.importRemoveCollision, self.importSounds) except KeyboardInterrupt: bpyhelper.LOCK_UPDATE = False print('Done. SMPTE: %s' % (smpte_from_seconds(datetime.now() - t))) return {'FINISHED'}