Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    get parent instance with VET

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
rik
Member
Posted
Hello everybody!

I have 2 questions.

1)I would like to get the instance parent with VETScript

I get the childs with myInstance.SceneChilds[x]
but how to get the parent of an instance?

I tried this properties but not work ( myInstance.parent, myInstance.parentNode, myInstance.Parent )


2) I tried to set the property "text" of layerData with VETScript using:

MTSLayerData.mouseCoords.text = "Hello";
MTSLayerData.mouseCoords::text = "Hello";

But not work

Any Idea?



Thank you in advance
 
Posts: 34 | Registered: March 17, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
1) Would this work for you?

MTSInstances.myParentInstanceName


2) this should just be:

myLayerDataName.text = "Hello";
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    get parent instance with VET