GeorgeP Posted April 21, 2012 Posted April 21, 2012 Hello. I have the following code in my script: Node selected_node = engine.editor.getNodeByName("Chair"); engine.editor.call("Nodes::select_node", selected_node, 0); Inside select_node function in Nodes namespace in editor_nodes.h, i have added the following in first line void select_node(Node n,int toggle) { log.message("Node: "+ n.getName() + "\n"); ..... ..... ..... } The problem is that i get different results in node names. Param Node n is not the chair i asked to be selected. Any idea of how to continue ? Thank you for your time.
unclebob Posted May 2, 2012 Posted May 2, 2012 Hi, Sorry for late reply. I patched editor code as you wrote above, but it seems all worked fine for my sample (see attachments). Could you provide your test scene? You can unzip my test sample in your data folder and see the results. editor_nodes.zip
GeorgeP Posted May 2, 2012 Author Posted May 2, 2012 Hello. I updated Unigine to latest version and it worked fine. As it seems previous version had the problem. Sorry and thnx.
Recommended Posts