/
Use Vicon ShogunPost SDK interfaces
Use Vicon ShogunPost SDK interfaces
Two kinds of classes are defined in the ViconShogunPostSDK module. Classes like Scene or Offline define interfaces to distinct areas of Shogun Post's functionality. While you can create an instance of one of these interfaces, they can be more easily accessed directly from the Python client.
Example scripts showing how to run operations in Post
To import libraries:
import ViconShogunPostSDK
import ViconShogunPost
To connect to a local copy of Shogun Post:
shogun = ViconShogunPost.ViconShogunPost()
To load a file:
name="path and name of file to be loaded using /"
shogun.LoadFile( name )
To reconstruct a loaded file:
offline = ViconShogunPostSDK.Offline()
offline.Reconstruct()
To change the color of a marker:
scene = ViconShogunPostSDK.Scene()
objects = ViconShogunPostSDK.ObjectList( scene )
ltoe = objects['LTOE']
ltoe.Color(231,101,0)
ltoe.Color = (100,200,0)
, multiple selections available,
Related content
Use Vicon ShogunPost SDK interfaces
Use Vicon ShogunPost SDK interfaces
More like this
Run Python scripts in Shogun Post
Run Python scripts in Shogun Post
More like this
Run Python scripts in Shogun Post
Run Python scripts in Shogun Post
More like this
Connect a Python client to Shogun Live
Connect a Python client to Shogun Live
More like this
Work with ShogunPostCL
Work with ShogunPostCL
More like this
HSL scripting with Vicon Shogun
HSL scripting with Vicon Shogun
More like this