From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Rush submit menu in Shake
   Date: Tue, 10 May 2004 19:02:52 -0700
Msg# 574
View Complete Thread (4 articles) | All Threads
Last Next
	Cool; thanks Johan!
	I'm sure that will help some folks.

johan aberg wrote:
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();

////////////

Last Next