Good day guys
I want to cange a .dae dynamically with this in js
AFRAME.registerComponent('model-overrider', {
init: function() {
document.querySelector('#tree').setAttribute('src',modelo);
}
and the html looks
<a-assets >
<a-asset-item id="tree" src=" "></a-asset-item>
</a-assets>
<a-entity collada-model="#tree" model-overrider></a-entity>
but I can´t make it work
thanks for your help,
sincerely,
Diego Ramirez.