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

Implement wedge feature #48 #49

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mottosso
Copy link
Member

@mottosso mottosso commented Mar 14, 2016

Let's talk code specifics here for #48.

@mottosso mottosso mentioned this pull request Mar 14, 2016
@mottosso
Copy link
Member Author

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, sys.executable, and finding mayapy from there, such that it works cross-platform still.

@mottosso
Copy link
Member Author

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)

@mottosso
Copy link
Member Author

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,

  1. Create animation layers, such as tall and slim
  2. Run the following.
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)

@mkolar
Copy link
Contributor

mkolar commented May 25, 2016

On Windows, the problem remains of finding a good player with support for multiple sequences at once, like RV.

I've been looking for RV replacement for over 2 years now. No luck thus far.

@mottosso
Copy link
Member Author

Have you considered djv?

@mkolar
Copy link
Contributor

mkolar commented May 25, 2016

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

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

Successfully merging this pull request may close these issues.

2 participants