Forum Replies Created
-
AuthorPosts
-
rzr87Participant
Thanks Yuri, this makes perfect sense. Thanks for all your help
rzr87ParticipantThanks.
This works. I am getting “You don’t have permission to access this resource” Forbidden error but that must be on the server side.
Another problem that popped up is that my assign Texture puzzle isnt working.
If i open the app with the normal HTML file the replace texture puzzle works but when I open it with link in the above post it doesnt work. the material puzzle works fine in both cases but the textures do not seem to register.I built the app in version 3.3.1 and updated to 3.5 but this didnt resolve it.
any idea on how to fix it?rzr87ParticipantThanks loads Yuri
Please keep up the good work your software rocks
rzr87ParticipantHi there.
I completely agree. the GET command I am using is in Javascript and it returns a value in which I can use if and else command.
so IF the item is not in stock it has to change the object to a different material to show its out of stock ELSE it leaves the material as is.
I am not sure how send the value back to puzzles so should the IF command be triggered, the command to change the material has to be in Javascript.
Or is there an easier way?
rzr87ParticipantThanks again for your help.
This seems to work but the object then gets a black material applied instead of the Gold matte
I think its actually assigning a new material but it might be blank.
This can also work if I can assign a new PBR shader with a texture using Javascript
rzr87ParticipantThanks Yuri, This makes sense.
rzr87ParticipantThanks for your quick reply.
Apologies I am no coder. this is what and it still isn’t working.
app.ExternalInterface.SET1 = function() {
var obj = app.scene.getObjectByName(‘face’);
var material = v3d.SceneUtils.getMaterialByName(app,
“1_GoldMatte”);
obj.material = material(‘1_GoldMatte’);
};So as a test I have an event that triggers the SET1 jsfunction that needs to change “face” object to the “1_GoldMatte” material.
The above code is not working what am I doing wrong?
-
AuthorPosts