Forum

Author Topic: Python Equivalent to Animation Pane's Create new track  (Read 6006 times)

KBL

  • Newbie
  • *
  • Posts: 32
    • View Profile
Python Equivalent to Animation Pane's Create new track
« on: September 11, 2024, 04:41:12 AM »
I was wondering if there is an equivalent to "Create new track" in the animation pane that can be accessed via python? I would like to automate the creation of orbit videos, and all I've been able to find in the documentation is the ability to create a track (without keyframes) or import an existing track. Is this functionality available?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: Python Equivalent to Animation Pane's Create new track
« Reply #1 on: September 30, 2024, 11:47:01 AM »
Hello KBL,

You can find an example of the animation (camera track) creation in the following thread:
https://www.agisoft.com/forum/index.php?topic=15761.msg68143#msg68143

Basically, creating of the new animation instance can be done by the following command:
Code: [Select]
new_track = chunk.addCameraTrack()

If you need some additional information related to the camera tracks or have any issues with adding the camera track key frames, please let me know.
Best regards,
Alexey Pasumansky,
Agisoft LLC