To set up Python to work with Nexus:
- Click Start, point to All Programs and then start to type Python.
- Click the Python symbol.
- To automatically configure Python for scripting with Nexus, at the command prompt, enter the following:
vicon = ViconNexus.ViconNexus()
For information on how to access the help provided on the relevant Python commands, see Python commands for use with Nexus. For more information about how to use Python, see .
If you disconnect your Ethernet cable and disable wifi, when you enter a Python command, the following error may be displayed:
Host Application is not connected, unable to retrieve command list
This is because Python connects to Nexus over TCP/IP and if you are working entirely offline, Python and Nexus cannot connect.
To solve this issue, install the Microsoft Loopback Adapter. For instructions on how to do this, see Adding the MS Loopback Adapter on Windows 7, on.