Chroma con Adobe After Effects

Chroma en Adobe After Effects

1. Elegir herramienta pluma y marcar borde del sujeto (mover la linea de tiempo para ver si queda todo dentro)
2. Effects / Keying / Keylight
3. Click en el gotero, y luego en la parte verde
4. View / Combined matte
5. Ajustar el verde (a la izquierda del gotero) hasta que se vayan las manchas del fondo
6. Screen Matte / Clip white (bajarlo)
7.              / Clip black (subirlo)
8. View / Final Result
10. Replace method / hard color
11. Screen shrink / glow  -1
12. Screen softness / 1
13. Effect / Color Correction / Lumetri Color
14. Basic correction / White balance / Temperature (ajustar)
                     / Shadows (bajar)
       / Whites (subir)
15. Layer / New / Solid / Elegir color verde / mover layer para abajo del video

Para ver la mascara de nuevo:

GitHub - Subir proyectos

Crear el repositorio en github.com (ej, nombre: gastos)

cd <path fuente>
git init
          git add .                     //agrega todos los archivos
          gitt add -all (o -a)     //agrega los archivos nuevos solamente y los que tuvieron cambios

git commit -m "agrego archivos"

//solo la 1ra vez:
git remote add origin https://github.com/cmrusso/gastos.git
git push origin master

//todas las siguientes veces
git push


(si hay problemas, git push --force origin master)


Para actualizar cambios

git commit -m "descripcion del cambio"
git push origin master


ClickOnce - ejecutar como administrador


Si se armó un setup con ClickOnce, no es posible -por diseño- ejecutarlo como administrador.

Para solucionarlo, agregar esto en el inicio de la aplicación.
Lo que hace basicamente es arrancar un nuevo proceso como administrador, y matar al actual.


private bool IsRunAsAdministrator()
{
var wi = WindowsIdentity.GetCurrent();
var wp = new WindowsPrincipal(wi);

return wp.IsInRole(WindowsBuiltInRole.Administrator);
}

private void Application_Startup(object sender, StartupEventArgs e)
{
if (!IsRunAsAdministrator())
{
    // It is not possible to launch a ClickOnce app as administrator directly, so instead we launch the
    // app as administrator in a new process.
    var processInfo = new ProcessStartInfo(Assembly.GetExecutingAssembly().CodeBase);

    // The following properties run the new process as administrator
    processInfo.UseShellExecute = true;
    processInfo.Verb = "runas";
        
    // Start the new process
    try
    {
        Process.Start(processInfo);
    }
    catch (Exception)
    {
        // The user did not allow the application to run as administrator
        MessageBox.Show("Sorry, this application must be run as Administrator.");
    }

    // Shut down the current process
    Environment.Exit(0);
}
else
{
    // We are running as administrator
        
    // Do normal startup stuff...
}
}



Fuente:
http://antscode.blogspot.com/2011/02/running-clickonce-application-as.html