PipelineFX Forum

Qube! => Jobtypes and Applications => Topic started by: Scot Brew on November 21, 2008, 09:44:42 PM

Title: In-application submission from AfterEffects
Post by: Scot Brew on November 21, 2008, 09:44:42 PM
We have moved to a script-based implementation of in-application submission for AfterEffects to provide version independence with AfterEffects versions. 

Installing:
From the QubeGUI (5.4.x or higher is required), execute the menu item:
   File->Install App UI->Install AfterEffects App UI

This will copy a script to the AfterEffects Scripts directory.

Using:
The installation of the In-App submission for AfterEffects from the QubeGUI should install a script file that can be accessed from the menu item in AfterEffects at:

   File->Scripts->Qube_Submit.jsx

This should launch the submission dialog for the QubeGUI (note that QubeGUI 5.4.x is needed) populated with the main parameters, including compositions.

Title: Re: In-application submission from AfterEffects
Post by: Genom on May 14, 2009, 05:13:34 PM
Regarding the in app submission script. I am at another site where all of the AE users are running as nromal, non administrative users, and I cant get the setting to stick. I run the setpath script within AE to save the path to Qube, but when I try to submit a job using the submit script, I get the path request again. I have checked the AE preferences file, and it IS saving the path in there correctly, but for some reason it still wont let me submit. Any ideas?
Title: Re: In-application submission from AfterEffects
Post by: Scot Brew on May 14, 2009, 07:12:27 PM
We cannot seem to reproduce this exact issue, though we can describe how the submission process works.  There is a javascript function that is used to retrieve the path of the QubeGUI from the AE preferences that is then used to launch the QubeGUI submit dialog directly.  If there is no preference Qube->QubeGUI_path or the path is invalid, it will prompt the user to specify the path.

Perhaps that user cannot store their prefs.  Here's some sample locations for those files.


For OSX, the file should contain something like:
Code: [Select]
["Settings_Qube"]
"QubeGUI_path" = "/Applications/pfx/qube/qube.app/Contents/MacOS/qube"

If it does not, then likely the preference is not being saved.

If all else fails, you can hardcode the getQubeguiPath function to return the valid QubeGUI location instead of having it query the path preference.  The file being used is Qube_Submit.jsx in the AfterEffects scripts directory.

File: Qube_Submit.jsx
Code: [Select]
function getQubeguiPath()
{
    var qubeguiPath = "";
    // Get from preferences
    if (app.settings.haveSetting("Qube", "QubeGUI_path")) {
        qubeguiPath = app.settings.getSetting("Qube", "QubeGUI_path");
    }
    // if path invalid, then prompt for path
    var qubeguiFile = new File(qubeguiPath);
    if (!qubeguiFile.exists) {
        qubeguiPath = setQubeguiPath()
    }
    writeLn("QubeGUI path: "+qubeguiPath);
    return qubeguiPath;
}