the script extension is not working when I use an object as trigger. It works fine when using the sphere or sprite. In the same scene, others scripts work fine with an object trigger. My solution right now is to put an opacity 0 sphere around it (even though we still see a light shadow on it, would be nice to have the option for completely invisible sphere ) but then I miss some behaviour (the trigger is supposed to change its emissive settings on hover).
By default materials are not editable (for performance reasons) and if changing material properties is required, then it must declared before scene loading.
Detailed information about using body-end.html and enabling material edition may be found on:
I think the issue is somewhere else, I have âviewer.setAllMaterialsEditable();â in my file (itâs not in the package I sent you because I have a modified index.html on my server). The issue is not about the script but the click on the object. I tried with a simple âconsole.log(âtestâ);â and it wasnât working either.
Did you manage to reproduce the error on your side?
Hi Thyronia,
I reproduced this problem and then fixed it by adding body-end.html file.
In fact in downloaded scene trigger type for âScript_brake_glowâ is set to âSphereâ, but I changed it to âObject typeâ and selected object âGroup#228â. But as you wrote the problem is not related to materials.
Does problem occur also in Editor ?
Does problem occur on each selected object ?
Are there other triggers linked to given object ?
Hi Thyronia,
In your case it is not a solution. In fact the root of problem is that you have linked to âGroup#228â âBreak_newsâ extension and this one is executed when user clicks âGlow seriesâ. The solution is to not link any extension to âGroup#228â as this object type has many representors in scene. Instead âBreak_newsâ extension should be linked to âbreak#2â and âbreak_blowâ extension back to âbreak#8â.