Hi all!
The following Shake code will put a menu in Shake that will call Rush's
submitscript for Shake. It will pass the name of the current Shake
script as a argument to submit-shake.pl. If you modify submit-shake so
that it picks up the new argument, all you have to do is to press the
update button in submit-shake.pl to set the framerange and fire off the
render.
The code has not been approved by Greg, use at own risk. Just thought
I'd share this with the community.
Put the code in a file.h in Shake's include/startup/ui directory.
ps. Mind the linewraps
johan
////////////
extern "C" {
int system(const char*);
}
void CallSystemMenu()
{
const char* command = stringf("/path/to/RUSH/submit-shake.pl %s &",
NRiMainWin1.scriptName);
system(command);
}
nuiPushMenu("RushRender");
nuiMenuItem("Submit Rush Job", CallSystemMenu());
nuiPopMenu();
////////////
|