Skip to content

Commit

Permalink
Merge pull request #1134 from adamltyson/position
Browse files Browse the repository at this point in the history
Print position parameter as 'pos'
  • Loading branch information
marcomusy authored Jun 6, 2024
2 parents afdade4 + f76ebbe commit afc85c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vedo/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4125,7 +4125,7 @@ def _default_keypress(self, iren, event) -> None:
vedo.printc("\n###################################################", c="y")
vedo.printc("## Template python code to position this camera: ##", c="y")
vedo.printc("cam = dict(", c="y")
vedo.printc(" position=" + utils.precision(cam.GetPosition(), 6) + ",", c="y")
vedo.printc(" pos=" + utils.precision(cam.GetPosition(), 6) + ",", c="y")
vedo.printc(" focal_point=" + utils.precision(cam.GetFocalPoint(), 6) + ",", c="y")
vedo.printc(" viewup=" + utils.precision(cam.GetViewUp(), 6) + ",", c="y")
vedo.printc(" roll=" + utils.precision(cam.GetRoll(), 6) + ",", c="y")
Expand Down

0 comments on commit afc85c2

Please sign in to comment.