The component API works across all components. Some components contain additional commands that are detailed separately.

Component (All Component Types)
Properties
Property Name Return Data Type Description Example Syntax
Name String Returns the name of this component HippoNet.LocalHost.Engine.Name
TypeName String Returns the Type of this component eg. HippoNet.LocalHost.Engine.TypeName
OwnerHost Host Object Returns the Host Object that this component is running on HippoNet.LocalHost.Engine.OwnerHost
OwnerHostName String Returns the name of the Host Object that this component is running on HippoNet.LocalHost.Engine.OwnerHostName
AllPinPaths Lua Table [Number,String] Returns a table of the paths to all the pins in the pin tree of this component from the root pin indexed by increasing integer HippoNet.LocalHost.Engine.AllPinPaths
RootPin Pin Object (GroupPin) Returns the topmost Pin Object in this components pin tree which is parent to all other pin objects HippoNet.LocalHost.Engine.RootPin
Functions
Function Name Parameters Return Data Type Description Example Syntax
FindPin (String PathFromRoot) Pin Object or Nil Returns the Pin Object with a path of from the component Root Pin or Nil if it cannot be found HippoNet.LocalHost.Engine:FindPin(Mix1/Layer1/Colour/Brightness')
SearchAllPinPaths (String Pattern) Lua Table [Number,Pin Object] Returns a table of all the Pin Objects with a path from Root that contains indexed by increasing integer HippoNet.LocalHost.Engine:SearchAllPinPaths('Level')
Stop () Nothing Attempts to stop this component HippoNet.LocalHost:FindComponent('CITP'):Stop()
Import (String FilePath) Boolean Attempts to import a component settings file at location from disk, returns True is successful or False if it failed for any reason HippoNet.LocalHost:FindComponent('MultiController'):Import('C:\\MC.v4s')
Export (String FilePath) Boolean Attempts to export this components settings to location on disk, returns True is successful or False if it failed for any reason (files should contain the .v4s file extension) HippoNet.LocalHost:FindComponent('MultiController'):Export('C:\\MC.v4s')

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
Green Hippo Forum

Post Comment