From: wattana <watttana@(email surpressed)>
Subject: Re: wrong frame info
   Date: Fri, 13 Apr 2012 13:29:12 -0400
Msg# 2213
View Complete Thread (9 articles) | All Threads
Last Next
Hi Greg!!

Thanks for the answer!

Yes, it seems that the location of the log file is the key of the 
problem...

But I do not understand why I never had this problem before... I've 
rendered a lot of projects and never seen this problem...

I found a way to workaround it coding (a little bit) the maya_submit.pl 
file. Here's the change I've made:

..
..
..
..
  # LOGDIR BASED ON SCENE PATH
    if ( $in{LogDirectory} eq "" )
    {
	$in{LogDirectory} = "$in{ScenePath}.$in{JobTitle}.log";

	# CREATE LOGDIR ONLY IF AUTOMATICALLY GENERATED
	if ( ! -d $in{LogDirectory} )
	{
	    unless ( mkdir($in{LogDirectory}, 0777) )
	    {
		print STDERR "mkdir($in{LogDirectory}): $!\n" .
			    "Can't make log directory.\n";
		exit(1);
	    }
	    # WINDOWS: OPEN ACLS FOR THE LOG DIRECTORY
	    if ( $G::iswindows )
	    {
		my $dirname = $in{LogDirectory}; $dirname =~ s%/%\\%g;
		system("cacls $dirname /e /c /g everyone:f");
	    }
	}
    }
..
..
..
..

I've added "$in{JobTitle}" in the logdir creation. I've tested and worked 
fine.. Now is the responsability for whoever launches a job to keep 
different job names, but I always put in the scene name and the layer.

Can this hack affect in anyway the normal rush behavior?

Thanks for your time!!



On Thu, 12 Apr 2012 15:06:24 -0400, Greg Ercolano wrote:

> On 04/12/12 11:43, wattana wrote:
>> Hi Greg!
>> 
>> Thanks a lot for the quick answer.
>> 
>> Yes, I render the same scene and the same frame range because I want to
>> render different layers. But in previous projects, I've been doing the
>> same without any problem...
>> 
>> Anyway, is there a way to change the name of the log (including layer
>> name) or some other workaround??
> 
> 	Yes, in the submit form, you can specify an alternate location 
for the
> 	log directory; under the 'Rush' tab there should be a "Log 
Directory:"
> 	prompt that is normally left blank for the default behavior of 
using
> 	the scene file as the pathname to use for the logs.
> 
> 	If you type your own pathname there, it will use that path 
instead for
> 	the logs, preventing the overwrite.
> 
> 	Other approaches: make a copy of your scene file called something 
else
> 	and submit the copy. This will cause the log to be based on the 
scene
> 	file copy's name.
> 
> 	Or if the scene file is large, just make a symlink to it with a
> 	different name, and submit that for the same effect.


Last Next