Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Last active October 20, 2020 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderofsalvation/2468dc3dfbaca0520cd65c20dfad7eb8 to your computer and use it in GitHub Desktop.
Save coderofsalvation/2468dc3dfbaca0520cd65c20dfad7eb8 to your computer and use it in GitHub Desktop.
Flexibility in aframe_blender_exporter

Custom aframe tags/attributes:

Will turn into

<a-image id="#Logo"   scale="1 1 1" position="-0.004364235792309046 2.5867919921875 -4.709991931915283" visible="true" shadow="cast: false"  src="#logo" geometry="width:3; height:0.9"></a-image>
attr type result
AFRAME_GEOMETRY unknown / custom attribute geometry="..value.."
AFRAME_NOGLTF exporter prevents gltf-model="..." attribute being written (handy in combination with AFRAME_TAG)
AFRAME_SRC unknown / custom attribute src="..value.."
AFRAME_TAG exporter override default <a-entity>-tag with <a-VALUE>-tag (handy for e.g.)

Empty blender entities

Are also supported, and exported as empty <a-entity> aframe-tags, so you can dynamically enhance them using javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment