Hi,
If the material you want to change is one of the native threejs (which verge3d is built on top) materials like for example MeshBasicMaterial, then you can do that as follows:
material.opacity = 0.5;
material.transparent = true;
material.needsUpdate = true;
But if you exported your scene from Blender/3dsMax then all materials are most likely of type MeshNodeMaterial and to change the opacity of such material you first need to connect a corresponding Value/Float node to the alpha input in the node material setup in the 3d editor. After doing that you can change the opacity by controlling the value of that node accessing it by its name:
let index = material.nodeValueMap['Value.001'];
material.nodeValue[index] = 0.5;
material.needsUpdate = true;
Co-founder and lead developer at Soft8Soft.