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

How to lock audio track? #73

Open
juniorbraun opened this issue Oct 20, 2023 · 9 comments
Open

How to lock audio track? #73

juniorbraun opened this issue Oct 20, 2023 · 9 comments

Comments

@juniorbraun
Copy link

Hey mate, How to lock all the audio tracks? When I import a video files that has sound on them I don't want the sound to be on track. So if I lock the audio tracks the audio won't be imported?

Thanks in advance.

@hedley-david
Copy link

Info on this page:
https://ppro-scripting.docsforadobe.dev/sequence/track.html

will allow you to select whether to mute the audio when adding to a timeline, or to only insert video to a sequence, if that's what your Q? refers to. I have used just about all of those commands successfully in my scripts.

I don't believe there is current support for altering the source tracks attached to source files directly.

@juniorbraun
Copy link
Author

Thanks you so much for your help! some of the lines are working well and as expected. I'm a novice trying new things. The ones now working are the ones that start with "app" like the following app.project.save()
It says that "app" is not defined. Could you help me?
Regards

@hedley-david
Copy link

the whole path to "app" is: pymiere.objects.app

so if your code says
import pymiere

you can add this under it so app.project.save() knows what to call for.
app = pymiere.objects.app

then it should work.

@juniorbraun
Copy link
Author

Mate, than you so much once again. I'm still having the same issue. NameError: name 'app' is not defined

The line bellow.

import pymiere
app.setWorkspace("Editing")

@hedley-david
Copy link

import pymiere
app = pymiere.objects.app
app.setWorkspace("Editing")

That should do it! :)

@juniorbraun
Copy link
Author

Amazing! you're a pro mate. Thank you so much! That worked well.

@juniorbraun
Copy link
Author

Mate, thanks for your help so far. How do I close the project without saving the changes? All the options I found was to save the changes on the original project file. Any help?

@hedley-david
Copy link

hedley-david commented Oct 26, 2023 via email

@juniorbraun
Copy link
Author

Unfortunately it doesn't work. I have tried, close, quit, No but nothing seems to work. I also tried looking on Script guide but the only option is to save ;(

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