≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
CurrentNode's name from action
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b]hadoken[/b] wrote: I'm having difficulties getting the current node's name from within an action. How can this be fixed? Thanks for any help. [code]/* <action jsname="action_PrintCurrentNodeName" description="print name of current scene node"> </action> */ action_PrintCurrentNodeName = function() { }; action_PrintCurrentNodeName.prototype.execute = function(currentNode) { var node = ccbGetCurrentNode(); var name = ccbGetSceneNodeProperty(node, "Name"); print("current name= "+ name); };[/code][/quote]
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