Eyeon:Script/Reference/Libraries/eyeon/scriptapp
From VFXPedia
Contents |
Usage
eyeon.scriptapp(string application, string host, number timeout, string uuid, string subtype )
- application (required, string)
A name of the application to connect to.
- host (string, required)
This argument should be a string containing the hostname or ip address of the machine hosting the script application.
- timeout (number, optional)
A number which specifies how long in seconds to wait for a valid response before timing out.
- uuid (string, optional )
Allows the user to specify the uuid of the instance of Fusion to connect to.
- subtype (string, optional)
Allows the user to specify the type of service to connect to. For instance one could specify “RenderManager” to connect to the standalone render manager, even if Fusion is also running on that machine. Valid subtypes include:
- Interactive
- Renderer
- RenderManager
Some applications support more than one subtype. For example, Fusion itself supports all three, while RenderSlave does not support Interactive. Subtypes are prioritised too, such that RenderSlave is preferred over Fusion for the Renderer and RenderManager subtypes.
Returns
Returns an object representing a connection to the remote script application of type name.
Remarks
This allows the script to connect to any eyeonscript enabled application via TCP/IP. It can be used as a replacement for the Fusion() function, or to connect to a remote bin server, or even a custom scripting application.
Requirements
- eyeonScript 5.1
Examples
The following code is equivalent to calling fu = Fusion("192.8.200.42")
fu = eyeon.scriptapp("Fusion", "192.8.200.42")
Tips for scriptapp (edit)
In Python that's
fu = PeyeonScript.scriptapp("Fusion", "192.8.200.42")