silverslade / aframe_blender_exporter

Blender Exporter for A-Frame VR
MIT License
103 stars 17 forks source link

customize template in script-tab #2

Closed coderofsalvation closed 4 years ago

coderofsalvation commented 4 years ago

Hi, thanks for this cool plugin, I've added 2 customization features:

1. custom index.html

After your first export, this patch will create the 'index.html'-template in the Script-workspace:

image

That way you can easily customize the exported index.html. (Think adding analytics, JS, a-frame libraries e.g.).

NOTE: index.html is an internal text-file which gets saved into the .blend file. Awesome isn't it?

2. unknown AFRAME_* custom attributes will map to aframe attributes automatically

Let's say you're using an aframe plugin foo which is configurable using foo-attributes:

image

will then be generated as:

<a-entity .... foo-bar="{value)">

this is quite powerful, as it is impossible to just hardcode every possible future a-frame feature into this addon. Hope you like it.

silverslade commented 4 years ago

Hi Leon! Thanks for your pull: I like it very much!