Hi Greg!
Yeah, adding only the layer name will be a perfect solution but with my
poor perl knowledge I cannot figure how to do it...
I mean... I found the "$in{MayaFlags}" var, but it will add "-rl
something" to the path and I don't like to mess up with spaces and weird
characters in any path.
Do you know a way to retrieve the layer name only?
Btw, thanks a lot for your time. This issue was driving me nuts. XD
On Fri, 13 Apr 2012 14:56:23 -0400, Greg Ercolano wrote:
> On 04/13/12 11:07, wattana wrote:
>> And it's the way I've rendered a lot of projects.. but.. I don't know
>> why now the logs are mixing... You said it's the default behavior
>> but... I've never seen that before..
>>
>> Anyway it's working now with the little hack.
>
> OK, sounds good then.
> Probably just by chance you didn't run into it.
>
> There are other things you could do to make the logs unique, but
if you
> do, it means resubmitting will make many log dirs.
>
> Another technique you might find useful is to tack on the date
+time,
> eg:
>
> use POSIX qw(strftime);
> my $datestr = strftime("%Y-%m-%d-%H-%M-%s", localtime);
> $in{LogDirectory} = "$in{ScenePath}--${datestr}.log";
>
> This would create a log path that looks like:
>
> /your/path/foo.ma--2012-04-13-11-51-59.log/
>
> Then you wouldn't have to worry about changing the job title. You
could
> work the job title in there too.
>
> Or perhaps you could modify the logdir to include the layer name
> automatically by parsing the Maya Flags: prompt for the layer
names,
> and include them in the log name AND job title. (If that's
something
> you do often)
|