Colin Holgate wrote:
> We were talking about this at work the other day, but there's a
> problem. The problem only comes up if you are foolish enough to rely
> on cast position, but just for interest: how do you drag and drop a
> bunch of cast members into the new cast in such a way that the gaps
> between the cast members remains intact? What happens is all the gaps
> are removed, even if you have selected the gaps in the original cast
> window.
Don't drag and drop-- just write a Lingo routine to move the members
into their respective positions within the new cast. (OK, I'll write it...;)
The following should work after temporarily re-linking the old castLib to the movie
(and if you have a copy of the old cast intact-- like Zav suggested...)
on repositionMembers oldCastLibNum, newCastLibNum
-- store old member names and numbers
memPosList = [:]
repeat with curMem = 1 to the number of members of castLib oldCastLibNum
curName = member(curMem,oldCastLibNum).name
if curName <> "" then addProp memPosList, curName, curMem
end repeat
-- move new names according to old numbers, this time start with the last member
numMems = the number of members of castLib newCastLibNum
repeat with curMem = numMems down to 1
curName = member(curMem,newCastLibNum).name
move member curName, member(getProp(memPosList, curName),newCastLibNum)
end repeat
save castLib newCastLibNum
end
Feel free to embellish as needed. If it's a huge cast, you might want to modify to
move it in smaller chunks.
Always a way to skin the cat...
Andy Driscoll
sunzen
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]