ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Accessing Node-Name from a Script on that Node?
person icon
drnibbert
Registered User
Quote
2026-03-15 12:40:05

Hello everyone!

Ok, serious Noob-Question here :-D

If i attach a script to a Coppercube-node (using Special --> Execute Java Script) - how can i access the name of the Node, that this script is on??
Using "this.name" only outputs as 0??

Thanks a lot!

person icon
okeoke
Registered User
Quote
2026-03-15 13:31:37

var node = ccbGetCurrentNode();
var name = ccbGetSceneNodeProperty(node, 'Name');
print(name);

You can find api reference here: https://www.ambiera.com/coppercube/doc/cnt_javascriptref.html

person icon
drnibbert
Registered User
Quote
2026-03-15 13:40:18

Thanks so much! That makes life much easier! :-D


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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