Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations collection not available #19

Open
Phildrummer opened this issue Jan 9, 2023 · 1 comment
Open

Annotations collection not available #19

Phildrummer opened this issue Jan 9, 2023 · 1 comment

Comments

@Phildrummer
Copy link

I want to add a new annotation like a text-rectangle or speech-bubble, but I can't find the annotations collection in the project class. Is it missing?

If I am missing something, do you have an example of how to add an anotation?

I see that this issue is still open. If so, when will this enhancement be available?

@abingham
Copy link
Collaborator

If I am missing something, do you have an example of how to add an anotation?

There are no examples, though a good start would be some tests, I guess. The way to add annotations is through the Track class, passing the results of the various annotation functions as the first argument:

from camtasia.annotations.shapes import rectangle
from camtasia.annotations.types import Color
. . .
track = timeline.tracks[0]
track.medias.add_annotation(rectangle(fill_color=Color(1, 0, 0)), start=100, duration=300)

I haven't actually tested this on a recent version of camtasia, but I know this used to work (at least for whatever limited needs I had for it).

I know all of this is underdocumented, etc., and I apologize for that, but this project has fallen way off of my radar. If it's a useful project for you, I'd be happy to merge in any improvements you want to provide.

I see that this #6 is still open. If so, when will this enhancement be available?

I have no plans to do any work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants