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

ishmaru
Registered User
Quote
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?


niko
Moderator
Quote
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.


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

Ok thanks Niko.


Create reply:


Posted by: (you are not logged in)


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


Text:

 

  

Forum 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


   





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