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

New project #11

Open
sgspecker opened this issue Sep 25, 2019 · 2 comments
Open

New project #11

sgspecker opened this issue Sep 25, 2019 · 2 comments

Comments

@sgspecker
Copy link
Contributor

sgspecker commented Sep 25, 2019

I tried the camtasia.new_project() function today and it failed on Windows.

image

It looks like the function is expecting to create (or find?) a directory structure associated with Mac .camproj. The new_project function hardcodes with "/", although I cannot remember if python automatically switches to "" automatically, based on the operating system. (I need to go back and look at your book. :-)

I've gotten used to using the os module to build all my paths so that I can run my scripts on either system. (Just started doing that with VBA, too, as many of my old Office macros can now be run on the Mac.)

For reference, here's the code I tried:

import camtasia

NEW_FOLDER = r'C:\Users\sg\Downloads\New folder\_TEST'
new = camtasia.new_project(NEW_FOLDER)

As a side note, what I was hoping to do was to create a new project, add two folders worth of media assets (pics and audio). Add the audio to the timeline, then add the associated pictures to the timeline and stretch them to match the length of the audio tracks. Not that difficult to do by hand, but automation would be faster. Hence, my wanting to use new_project().

Next, I'll have to figure out how to play with the timeline. It looks like your API handles manipulating all the project's JSON data, but it always takes some time figuring out a new object model that I've not used before. I'm guessing that you know the feeling.

FWIW,
Scott

@abingham
Copy link
Collaborator

abingham commented Sep 27, 2019 via email

@abingham
Copy link
Collaborator

I need to go back and look at your book.

By the way, we hope you're enjoying it! If you'd like a copy of the next book in the series, let me know and I'll fix one up for you.

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