1 Reply Latest reply on Dec 5, 2006 3:08 PM by Newsgroup_User

    to name castmember with Lingo

    Level 7
      Hello:
      I need to name 50 cast member with these names:
      D1, D2, D3, D4... etc
      Can I do it by Lingo?
      thank you very much


        • 1. Re: to name castmember with Lingo
          Level 7
          repeat with x = 1 to 50
          member (x).name = "D" & x.string
          end repeat

          you don't really need he .string but it makes for better self documenting
          code. Depending on how your movie is set up you might need to specify a
          castLib number or name or change the 1 to 50 to some other range of 50 if
          you're not starting in the first cast position. in that case you'll need to
          subtract something from x

          repeat with x = 43 to 92
          member (x).name = "D" & (x - 42).string
          end repeat

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "Anne" <anmalo42@lycos.es> wrote in message
          news:el4tr3$muq$1@forums.macromedia.com...
          > Hello:
          > I need to name 50 cast member with these names:
          > D1, D2, D3, D4... etc
          > Can I do it by Lingo?
          > thank you very much
          >