Forum

User posts prabhuperiyandavar
14 January 2020 17:45 [ON MODERATION]
hi guys,
i have an doubt in hide /show object using html button link with logic node these are the codes i used

var m_logic_n = require("logic_nodes");

document.getElementById("tyre1").onclick = function () {
Show()
};
document.getElementById("tyre2").onclick = function () {
Hide()
};
function Show() {
m_logic_n.run_entrypoint("Scene", "B4WLogicNodeTree");
console.log("Show");
}
function Hide() {
m_logic_n.run_entrypoint("Scene", "NodeTree");
console.log("Hide");
}
console log is working file..but no changes in the scene i have attach my blend file along with this

thank you in advance
14 January 2020 17:32 [ON MODERATION]
hi guys,

i have a doubt in how to connect the entry point logic to an html button to show / hide objects.
here is my code
var m_logic_n = require("logic_nodes");
document.getElementById("tyre1").onclick = function () {
Show()
};
document.getElementById("tyre2").onclick = function () {
Hide()
};
function Show() {
m_logic_n.run_entrypoint("Scene", "B4WLogicNodeTree");
console.log("Show");
}
function Hide() {
m_logic_n.run_entrypoint("Scene", "NodeTree");
console.log("Hide");
}
console log is working..but noting happen in the scene