aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Add all data attributes and classes to details from a node #473

Closed HeinPauwelyn closed 7 years ago

HeinPauwelyn commented 7 years ago

I'm making a project and I've added some data-attributes to the a-nodes. Example of my data below:

<a-scene>
    <a-sky src="myimage.png"></a-sky>
    <a-entity id="variables">
        <a-entity class="clickable" data-to="1"></a-entity>
        <a-entity class="clickable" data-to="0"></a-entity>
        <a-entity class="clickable" data-info="19"></a-entity>
        <a-entity class="clickable" data-info="01"></a-entity>
        <a-entity class="clickable" data-info="27"></a-entity>
        <a-entity class="clickable" data-info="20"></a-entity>
    </a-entity>
</a-scene>

Each node with class clickable got also an image but I've removed this from the snippet to improve readability. This nodes got also a rotation, position and scale attribute.

To make my work a bit faster, I'll like to see the data and the classes of each node inside the visual inspector.

image

fernandojsg commented 7 years ago

I think this is currently out of the scope of the editor as it's something very specific to your use case. It would be hard to differentiate between which attributes you want to be available or not and define the data type and so on. Probably you could try to create a module for this specific behaviour and just activate on the scenes you want to use it.