Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
ccbGetSceneNodeProperty(root,"Name") property does not exist.

bracer
Registered User
Quote
2019-09-16 07:31:40

var root = ccbGetRootSceneNode();

print("root's name is: " + ccbGetSceneNodeProperty(root,"Name")); //Was kinda expecting "New 3D Scene1" or something but instead get Property does not exist.


yalazkan
Registered User
Quote
2019-09-16 10:44:46

var root = ccbGetRootSceneNode();
print("root's name is: " + root);
(does not return with the name that you've expected…)



Look at this example…

//check fog...
var root=ccbGetRootSceneNode()
varname = "fogon";
var s = ccbGetCopperCubeVariable(varname);
if (s == 1)
{ //turn Fog On
ccbSetSceneNodeProperty(root,"Fog",true);
}

But really set up one of ıts elements….


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (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