def execute(self, context): prev_dir = join(getRoot(), "player", "preview") if os.path.exists(prev_dir): shutil.rmtree(prev_dir) os.mkdir(prev_dir) bpy.ops.v3d.export_gltf(filepath=join(prev_dir, 'sneak_peek.gltf'), export_sneak_peek=True) execBrowser(getAppManagerHost() + 'player/player.html?load=preview/sneak_peek.gltf') return {"FINISHED"}
def execute(self, context): execBrowser(getAppManagerHost()) return {"FINISHED"}