Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
unhide object

samgrady
Registered User
Quote
2022-08-13 01:36:23

how to make a hidden object visible, when the object is hidden it cannot be accessed and as a result it remains hidden and I do not find any way to make it visible again


Guest
Guest
Quote
2022-08-13 03:25:32

Just put the behavior/action to hide/unhide the scene node on another node (folder nodes or root node works well). You can also unhide the node with JS and the function ccbSetSceneNodeProperty() like:

var s = ccbGetSceneNodeFromName("cubeMesh1");

ccbSetSceneNodeProperty(s, "Visible", true);


samgrady
Registered User
Quote
2022-08-15 20:50:20

<
var s = ccbGetSceneNodeFromName("cubeMesh1");
ccbSetSceneNodeProperty(s, "Visible", true);
>
if i hide object i can't make it visible again, where use this code to make coppercube send command to hidden object


Guest
Guest
Quote
2022-08-16 01:00:21

Use the code in an "Execute Java Script" action that's on a different scene node than the one you wan't to make visible again. Once a node is invisible it no longer runs its own behaviors or actions.


Create reply:


Posted by: (you are not logged in)


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