Skip to content

Support setting camera postion from script: set_camera x,y,z #3006

@NathanaelA

Description

@NathanaelA

Is your feature request related to a problem? Please describe.
I would like to be able to rotate the camera around an object in the command script. I can currently use the --camera-azimuth-angle from the command line to rotate, but that requires running f3d multiple times. I would like to run f3d, load glb, take screen shot, rotate, take screen shot, etc...

Describe the solution you'd like

  • Add support for setting the camera position directly from scripts with a command like set_camera x,y,z
  • Add tests and docs

Describe alternatives you've considered
Going to attempt to use roll_camera elevation_camera azimuth_camera commands to emulate the
azimuth-angle command, but I suspect it is going to require a bit of math. ;-)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions