Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
bug in editorGetSelectedSceneNode() function

ssatguru
Registered User
Quote
2022-04-14 17:11:03

As per document the function "editorGetSelectedSceneNode()" "Returns the currently selected scene node or 0 if nothing selected."

See document

https://www.ambiera.com/coppercube/doc/cnt_javascriptref.html%hash%editorGetSelectedSceneNode

(replace %hash% with the actual hash character in the url. forum seems to eat up the "hash" character)


If nothing is selected it is not returning 0 as mentioned in the document.

The example given in the document does not work when nothing is selected

var s = editorGetSelectedSceneNode();

if (s)
alert("Name of the selected node is: '" + ccbGetSceneNodeProperty(s, "Name") + "'");
else
alert("nothing selected");


I am using 6.5.1


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact