ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Feature requests and bug reports
Cannot get property name from root
Author Text

Registered User
2017-08-08 14:21:37

Hi I need to get the name of the current scene and i tried to use this:

var root1 = ccbGetRootSceneNode();
var name1 = ccbGetSceneNodeProperty(root1, 'Name');

But I get a cannot find property "Name" of scene node.

What can i do?

2017-08-13 08:36:10

Currently there is no way to do this (unless you are using WebGL, then you could use the CopperLicht API to get this), sorry. When switching scene, you could probably set a variable to get the current scene. Or add an invisible node into each scene with a specific name to identify the scene, maybe, as workaround.

Registered User
2017-08-15 11:14:07

Ok thanks Niko.

Create reply:

Posted by: (you are not logged in)

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




Forum Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.