Paring a needle model with a vtktransform through python code

I am trying to pair an already existing needle model with tracking data streaming in through the Plus server to view the needle in the 3D view. Currently I am performing this through using the data module and dragging my needle model on top of the appropriate transform, however I would like to code this to happen automatically as part of my module.

Any help is appreciated!

Thanks :slight_smile:

You can call transformableNode.SetAndObserveTransformNodeID(transformNode.GetID()). See more examples in Transforms module documentation.

1 Like