Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 474 Bytes
"""Lock an object orientation to the scene camera.
from vtkplotter import Sphere, Text, Plotter
plt = Plotter(axes=1, interactive=0)
sp = Sphere().wireframe()
tx1 = Text("Fixed point", sp.getPoint( 10), s=0.07, c="lb")
tx2 = Text("Follow point", sp.getPoint(144), s=0.07, c="lg")
# a camera must exist prior to calling followCamera()
tx2.followCamera() # a vtkCamera can also be passed as argument, tx1, tx2, Text(__doc__), interactive=1)
You can’t perform that action at this time.