-
Notifications
You must be signed in to change notification settings - Fork 37
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
Implement wedge feature #48 #49
base: master
Are you sure you want to change the base?
Conversation
I'm still having trouble getting the settings of the current session and applying those in the background processes. I either end up with default settings, as if the preset was never applied, or with it capturing a non-modelPanel which results in a multicolored, broken playblast. @BigRoy are you able to give this a try on your machine? I'm referring to "mayapy" directly, so it's possible you may have to either expose it to your PATH, or replace that reference with an absolute path. Possibly by first getting a hold of the current executable, |
Here's a test script you can try. import capture
import subprocess
def play_in_vlc(files):
subprocess.Popen([r"C:\Program Files\VideoLAN\VLC\vlc.exe"] + files)
# simple
capture.wedge(["tall"], async=False, on_finished=play_in_vlc)
# async
capture.wedge(["tall"], async=True, silent=False, on_finished=play_in_vlc) |
Whop! This now works on Windows and Linux. On Windows, the problem remains of finding a good player with support for multiple sequences at once, like RV. To run,
import subprocess
import capture
def play_in_djv(files):
print("Playing %s" % files)
subprocess.Popen([r"C:\Program Files\VideoLAN\VLC\vlc.exe"] + files)
# simple
capture.wedge(["tall", "slim"])
# background
capture.wedge(["tall", "slim"], async=True, silent=False, on_finished=play_in_djv) |
I've been looking for RV replacement for over 2 years now. No luck thus far. |
Have you considered djv? |
We're using it on a daily basis, but never really had the time (and guts 😄 ) to look at the source, to tweak it. It's by far the closest to what is needed though |
Let's talk code specifics here for #48.