Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement wedge feature #48 #49
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.
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)