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
from

Conversation

Projects
None yet
2 participants
@mottosso
Member

mottosso commented Mar 14, 2016

Let's talk code specifics here for #48.

@mottosso mottosso added the feature label Mar 14, 2016

@mottosso mottosso referenced this pull request Mar 14, 2016

Open

Wedge support #48

@mottosso

This comment has been minimized.

Show comment
Hide comment
@mottosso

mottosso Mar 15, 2016

Member

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.

Member

mottosso commented Mar 15, 2016

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

This comment has been minimized.

Show comment
Hide comment
@mottosso

mottosso Mar 16, 2016

Member

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)
Member

mottosso commented Mar 16, 2016

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

This comment has been minimized.

Show comment
Hide comment
@mottosso

mottosso Mar 18, 2016

Member

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)
Member

mottosso commented Mar 18, 2016

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

This comment has been minimized.

Show comment
Hide comment
@mkolar

mkolar May 25, 2016

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@mottosso

mottosso May 25, 2016

Member

Have you considered djv?

Member

mottosso commented May 25, 2016

Have you considered djv?

@mkolar

This comment has been minimized.

Show comment
Hide comment
@mkolar

mkolar May 25, 2016

Contributor

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

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