#!BPY """ Name: 'JavaScript (.HTML)...' Blender: 244 Group: 'Export' Tooltip: 'Save as a JavaScript' """ import bpy from Blender import Window, sys, Draw import BPyMesh def write_html(filename): if not filename.lower().endswith('.html'): filename += '.html' sce = bpy.data.scenes.active me = BPyMesh.getMeshFromObject(sce.objects.active) if not me: Draw.PupMenu('Error%t|Select a Mesh') return file = open(filename, "w") file.write(\ '''