I'm sorry, I have sent the wrong one. Stupid me.
Here's the good one.
Oh by the way, if you don't want to mess around, create a test folder on a
drive, put a folder named S009 inside of it, and another named P023 into
that one. Then put a "decor" folder into that last one and put at least one
file in it.
Thanks
Bernard
http://www.bernardlebel.com
http://www.xsimontreal.com
http://www.xsibase.com
From: "Bernard Lebel" <atyss4si(at)hotmail.com>
Reply-To: XSI(at)Softimage.COM
To: XSI(at)Softimage.COM
Subject: Re: [Script] Mysterious error
Date: Mon, 03 May 2004 19:23:32 +0000
All righty, here is the full script.
Remember that it's a work in progress.
Before you get a heart attack at seeing the length, I should explain that
the main function (checksequence()) is basically 5 times the same thing
(files are stored in a array, the first file is catched, then its name is
broken down, then fiiles with different name are added to another array,
and so on, until 5 sequences are evaluated).
Attached is a JScript file with txt extention.
Matt: simpler code also works on my machine. Somewhere in my function
things get screwed up and I don't know why.
Thanks
Bernard
http://www.bernardlebel.com
http://www.xsimontreal.com
http://www.xsibase.com
From: Bradley Gabe <bgabe(at)ilm.com>
Reply-To: XSI(at)Softimage.COM
To: XSI(at)Softimage.COM
Subject: Re: [Script] Mysterious error
Date: Thu, 29 Apr 2004 10:22:38 -0700
At this point, I can't really help without seeing more of the code in
context.
The only other possibility that comes to mind is variable scope. It's
possible you have a mistaken "var" declaration somewhere, or that there's
overlap in the scope of one of your functions with some aspect of your
loop. In the past, I'd found on more than a few occasions that Jscript
doesn't always properly handle variable scope automatically between code
blocks.
-Brad
Ok I found more to this.
I get the error because the enumerator can't perform the second
iteration,
wich confuses me even more. The called function is successful, but then I
get that error for the second collection item.
Duh?
----- Original Message -----
From: "Bernard Lebel" <atyss4si(at)hotmail.com>
To: <XSI(at)Softimage.COM>
Sent: Thursday, April 29, 2004 12:42 PM
Subject: Re: [Script] Mysterious error
1. While you *should* be able to instantiate your enumerator object
within the for() statement, I've never seen it done, I've never done
it,
and looking at the enumerator object on the msdn jscript reference
site,
they don't do it there either. So maybe try declaring the enumerator
*before* starting the for() loop.
var f = new Enumerator(oFoldersColl2);
for( ;f.atEnd(); f.moveNext() )
No luck, I get the same results doing this.
2. Are you perhaps manipulating objects within the oFoldersColl2
collection during the loop? That could lead to funky results as well.
Not at all! The objects are folders containing files, and the functions
basically evaluates the files to see if there are missing frames in
rendered
sequences. At no point the initial folder collection is changed. The
main
function creates arrays to store different sequences contained in the
same
folder, and these arrays are sent to another function to test if there
are
missing files. I don't see why I'm getting this error though, I'll keep
investigating.
Thanks for the help
Bernard
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
--
Bradley R. Gabe
Industrial Light & Magic
_________________________________________________________________
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
<< Check_Sequence_wip2.txt >>
_________________________________________________________________
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi