<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: selecting multiple objects by name in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112005#M23609</link>
    <description>Can you post a few examples of the full names - the Trim functions shouldn't lose odd letters like that.&lt;BR /&gt;&lt;BR /&gt;As for the parenthesis - they are used mainly to create "code blocks" and to control the scope of variables. They have other uses as well, but those are the basic ones. "Scope" is covered quite well in the help.</description>
    <pubDate>Thu, 10 Sep 2009 22:11:53 GMT</pubDate>
    <dc:creator>Steve_Curley</dc:creator>
    <dc:date>2009-09-10T22:11:53Z</dc:date>
    <item>
      <title>selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111990#M23594</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to select all nodes in a scene that have "moveall" in their name. &lt;BR /&gt;The following code only selects 1, how do I get all of them? &lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;getnodebyname "moveall"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;Brian</description>
      <pubDate>Wed, 02 Sep 2009 22:15:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111990#M23594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-02T22:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111991#M23595</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;select &amp;amp;#36;*moveall*&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;getNodeByName "somename" returns a Node - it doesn't select the node.&lt;BR /&gt;getNodeByName "somename" all:true returns an array of nodes. Still doesn't select them though.</description>
      <pubDate>Wed, 02 Sep 2009 22:45:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111991#M23595</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-02T22:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111992#M23596</link>
      <description>ok, thx. i just need to put all of them in an array and then display them for now.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;x = getNodeByName "Moveall" all:true&lt;BR /&gt;print x&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;doesn't work&lt;BR /&gt;&lt;BR /&gt;sorry for the newbie questions, this is my first maxscript.&lt;BR /&gt;&lt;BR /&gt;brian</description>
      <pubDate>Thu, 03 Sep 2009 00:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111992#M23596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-03T00:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111993#M23597</link>
      <description>&lt;PRE&gt;x = &amp;amp;#36;*Moveall* as array&lt;BR /&gt;print x&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Sep 2009 03:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111993#M23597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-03T03:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111994#M23598</link>
      <description>wher d u guys lurn all thes scripts,that are realy helpful,but i m trying since one year,its beyond my understanding how to begin wid?</description>
      <pubDate>Thu, 03 Sep 2009 03:45:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111994#M23598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-03T03:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111995#M23599</link>
      <description>1: Try writing a script&lt;BR /&gt;2: Use the Maxscript help to work out what you did wrong&lt;BR /&gt;3: if if doesn't work, GOTO 2.&lt;BR /&gt;&lt;BR /&gt;In other words, there's no easy way. You just have to learn how to use it the same way as you learn to do anything. Trial and error, read the help, the forums, books. Try again.</description>
      <pubDate>Thu, 03 Sep 2009 07:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111995#M23599</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-03T07:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111996#M23600</link>
      <description>select &amp;amp;#36;moveAll*&lt;BR /&gt;&lt;BR /&gt;And to learn script well how about starting with all of the tutorials that ship with Max in the Max script help. It will takes lots of time. I have been at it for about 13 years.</description>
      <pubDate>Thu, 03 Sep 2009 14:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111996#M23600</guid>
      <dc:creator>paulneale</dc:creator>
      <dc:date>2009-09-03T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111997#M23601</link>
      <description>Learning about scripting requires alot of trial and error.&lt;BR /&gt;Just like the other parts of the 3d universe.&lt;BR /&gt;&lt;BR /&gt;I started out with the Getting Started from the 3ds max help section.&lt;BR /&gt;After two years on my own i have a decent understanding of how to build your own tools and macros.&lt;BR /&gt;Still have far to go if i want to do advanced plugins and stuff...</description>
      <pubDate>Thu, 03 Sep 2009 15:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111997#M23601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-03T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111998#M23602</link>
      <description>ok, thx.&lt;BR /&gt;&lt;BR /&gt;so now i can find all of my nulls, load them into an array, index them, and print them, but when i try to trimleft the name, i get the message:  &lt;BR /&gt;&lt;BR /&gt;-- Unable to convert: &amp;amp;#36;Null:C-Ly_Sheppard_Ctrl_M_Moveall @  to type: String&lt;BR /&gt;&lt;BR /&gt;i thought the items in my array were already strings?&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;brian</description>
      <pubDate>Wed, 09 Sep 2009 18:10:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111998#M23602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-09T18:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111999#M23603</link>
      <description>That depends on what is in the array. If you selected them by "x=&amp;amp;#36;MoveAll* as array" then you have nodes, not names. &lt;BR /&gt;&lt;BR /&gt;Try "print x.name". If that works, then so do the new batteries in my crystal ball...&lt;BR /&gt;&lt;BR /&gt;You need to post the actual code, not just the results of it, for us to have any chance of working out what's wrong.&lt;BR /&gt;&lt;BR /&gt;If you used "select &amp;amp;#36;MoveAll*" then you have no array other than the built-in "Selection" collection, in which case you need to iterate over the collection "for obj in selection do" and you still need "obj.name" to get at the name.</description>
      <pubDate>Wed, 09 Sep 2009 18:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4111999#M23603</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-09T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112000#M23604</link>
      <description>ok, here is what i have so far:&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&amp;amp;#36;*Moveall* as array&lt;BR /&gt;&amp;amp;#36;*Moveall*.count&lt;BR /&gt;for i in &amp;amp;#36;*Moveall* do&lt;BR /&gt; i as string&lt;BR /&gt; trimleft i "&amp;amp;#36;Null:C-Ly_"&lt;BR /&gt; print i&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and here is the output:&lt;BR /&gt;&lt;BR /&gt;#&amp;amp;#40;&amp;amp;#36;Null:C-Ly_Sheppard_Ctrl_M_Moveall @ , &amp;amp;#36;Null:C-Ly_KroganGrunt_Ctrl_M_Moveall @ , &amp;amp;#36;Null:C-Ly_Thane_Ctrl_M_Moveall @ &amp;amp;#41;&lt;BR /&gt;3&lt;BR /&gt;OK&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: C:\Documents and Settings\bmckee\Desktop\LayoutQC.ms; position: 178&lt;BR /&gt;-- Unable to convert: undefined to type: String&lt;BR /&gt;undefined&lt;BR /&gt;undefined&lt;BR /&gt;OK&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;brian</description>
      <pubDate>Wed, 09 Sep 2009 18:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112000#M23604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-09T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112001#M23605</link>
      <description>Ok, first thing is getting the selection.&lt;BR /&gt;Either "select &amp;amp;#36;*Moveall" or "x = &amp;amp;#36;*Moveall as array", but not both or a combination. If you need them to be selected, then use the 1st form, if not then use the second. Remember that they do not need to be selected in order to work on them.&lt;BR /&gt;This does affect how you write the next part.&lt;BR /&gt;&lt;BR /&gt;Either "for i in selection do..." or "for 1 = 1 to x.count do..."&lt;BR /&gt;Note that in the 1st case "i" is the actual object, in the second it is an index into an array of the objects &amp;amp;#40;i.e. a number&amp;amp;#41;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"something as string" won't work in either case, either "something.name" in the first case, or "x.name" in the second.&lt;BR /&gt;&lt;BR /&gt;The loop won't work as it stands either way, because you don't have parenthesis around all the statements which need to be executed for each object. &lt;BR /&gt;&lt;BR /&gt;Finally, "print" can give, how shall I say, interesting results - things printed twice, strings with quote marks around them &amp;amp;#40;may seem trivial, but when you start on filenames it can be a pain&amp;amp;#41;. Use the "Format" function instead.&lt;BR /&gt;&lt;BR /&gt;The image shows both methods and also shows that the results are the same. Which method you use depends on what else you need to do with the objects, but in most cases, unless you want to manually move them in the viewports, they don't need to be selected.&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/s/selectionstuff.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2009 20:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112001#M23605</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-09T20:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112002#M23606</link>
      <description>To make things a little simpler to follow, you can use "for obj in x do" on the array version too. Then everything in the for loop is identical. &lt;BR /&gt;&lt;BR /&gt;Also &amp;amp;#40;and I know this isn't from you Steve, but to the op&amp;amp;#41;, it's not a good idea to have a variable called "x" that holds an array. It won't break anything, but you're better off using a descriptive name like "nullArray" or something so you know what you're looking at.</description>
      <pubDate>Wed, 09 Sep 2009 20:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112002#M23606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-09T20:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112003#M23607</link>
      <description>LOL - I thought I &lt;I&gt;was&lt;/I&gt; keeping it simple &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;for obj in &amp;amp;#36;*Moveall do&lt;BR /&gt;   format "%\n" &amp;amp;#40;trimLeft obj.name "Null:C-Ly_"&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2009 20:47:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112003#M23607</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-09T20:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112004#M23608</link>
      <description>Thanks Steve, you are very helpful. &lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt;MyArray = &amp;amp;#40;&amp;amp;#36;*Moveall* as array&amp;amp;#41;&lt;BR /&gt;for i = 1 to MyArray.count do&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; CharName = trimLeft MyArray&lt;I&gt;.name "C-Ly_" &lt;BR /&gt; CharName2 = trimRight CharName "_Ctrl_M_Moveall"&lt;BR /&gt; format "%\n" CharName2&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;and here is the output:&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;Sheppard&lt;BR /&gt;KroganGrun&lt;BR /&gt;Than&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Works well, except I lose the "t" in "KroganGrunt" and the "e" in "Thane". &lt;BR /&gt;Oh, I think thats because of the "t" and "e" in "_C&lt;B&gt;&lt;I&gt;t&lt;/I&gt;&lt;/B&gt;rl_M_Mov&lt;B&gt;&lt;I&gt;e&lt;/I&gt;&lt;/B&gt;all". How can I correct that?&lt;BR /&gt;&lt;BR /&gt;I need to read up on maxscript syntax and parenthesis. I'm used to python scripting in MotionBuilder.&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;Brian</description>
      <pubDate>Thu, 10 Sep 2009 16:35:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112004#M23608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-10T16:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112005#M23609</link>
      <description>Can you post a few examples of the full names - the Trim functions shouldn't lose odd letters like that.&lt;BR /&gt;&lt;BR /&gt;As for the parenthesis - they are used mainly to create "code blocks" and to control the scope of variables. They have other uses as well, but those are the basic ones. "Scope" is covered quite well in the help.</description>
      <pubDate>Thu, 10 Sep 2009 22:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112005#M23609</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-10T22:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112006#M23610</link>
      <description>sure,&lt;BR /&gt;&lt;BR /&gt;here are the full names before any trimming:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;C-Ly_Sheppard_Ctrl_M_Moveall&lt;BR /&gt;C-Ly_KroganGrunt_Ctrl_M_Moveall&lt;BR /&gt;C-Ly_Thane_Ctrl_M_Moveall&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2009 22:51:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112006#M23610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-10T22:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112007#M23611</link>
      <description>Ok, now I understand &amp;amp;#40;I think&amp;amp;#41; - it's removing &lt;I&gt;any&lt;/I&gt; of the characters in the 2nd string from the 1st string - not quite what you would expect from working with other languages.&lt;BR /&gt;&lt;BR /&gt;substituteString seems to work though, as it's looking for an exact match.&lt;BR /&gt;&lt;BR /&gt;I created 3 objects and named them appropriately and selected them for this test.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt;for obj in selection do&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; str1 = obj.name&lt;BR /&gt; str2 = substituteString str1 "C-Ly_" ""&lt;BR /&gt; str3 = substituteString str2 "_Ctrl_M_Moveall" ""&lt;BR /&gt; format "%, %, %\n" str1 str2 str3&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Essentially it is finding the quoted text within the string and replacing it with the 2nd quoted text, which is an empty string thus removing it. The results are what you are looking for, I believe.&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/s/selectionstuff1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2009 10:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112007#M23611</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2009-09-11T10:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112008#M23612</link>
      <description>thanks Steve, substituteString worked well.&lt;BR /&gt;&lt;BR /&gt;Here is what I have so far:&lt;BR /&gt;&lt;PRE&gt;&amp;amp;#40;&lt;BR /&gt;format "%\n" ""    --blank line&lt;BR /&gt;MoveAllArray = &amp;amp;#40;&amp;amp;#36;*Moveall* as array&amp;amp;#41;    --put movealls in array&lt;BR /&gt;CharacterPath = substring maxFilePath 1 &amp;amp;#40;maxFilePath.count-25&amp;amp;#41;    --get current file path and trim&lt;BR /&gt;CharacterPath = append CharacterPath "01_Characters\\"    --change path to characters folder&lt;BR /&gt;CharacterFolderArray = &amp;amp;#40;GetDirectories &amp;amp;#40;CharacterPath+"*"&amp;amp;#41; as array&amp;amp;#41;    --load folders into FolderArray &lt;BR /&gt;for i = 1 to MoveAllArray.count do    --loop thru array trimming character names&lt;BR /&gt; &amp;amp;#40; &lt;BR /&gt; CharacterName = substituteString MoveAllArray&lt;I&gt;.name "C-Ly_" ""&lt;BR /&gt; CharacterName = substituteString CharacterName "_Ctrl_M_Moveall" ""&lt;BR /&gt; format "%\n" CharacterName&lt;BR /&gt; for j = 1 to CharacterFolderArray.count do    --loop thru array trimming folder names&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; FolderName = substituteString CharacterFolderArray&lt;J&gt; CharacterPath ""&lt;BR /&gt; FolderName = substituteString FolderName "\\" ""&lt;BR /&gt; Match = stricmp CharacterName FolderName    --compare characters name to folder names&lt;BR /&gt; if Match == 0 do&lt;BR /&gt; format "%\n" "Max character name matches folder name!"&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;/J&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;My formatting got messed up when I pasted above, sorry. It loads all of my movealls into an array. Then reads folder names from my Characters folder on the network into another array. It compares Character names in max to folder names and prints if there is a match. It is a QC check for character names. &lt;BR /&gt;&lt;BR /&gt;Got another question though. When i load my MoveAllArray it is full of characters:&lt;BR /&gt;&lt;PRE&gt;C-Ly_Sheppard_Ctrl_M_Moveall&lt;BR /&gt;C-Ly_KroganGrunt_Ctrl_M_Moveall&lt;BR /&gt;C-Ly_Thane_Ctrl_M_Moveall &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;But it also loads an environment:&lt;BR /&gt;&lt;PRE&gt;E-Ly_Mountain_Ctrl_X_MoveAll&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Is there an easy way to keep the environment out of the array? Can I change this:&lt;BR /&gt;&lt;PRE&gt;&amp;amp;#36;*Moveall*&lt;/PRE&gt;&lt;BR /&gt;to exclude "E-Ly_Mountain_Ctrl_X_MoveAll"?&lt;BR /&gt;&lt;BR /&gt;Nevermind, got it.  "&amp;amp;#36;*M_Moveall*" worked.&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;Brian</description>
      <pubDate>Sat, 12 Sep 2009 00:34:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112008#M23612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-12T00:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: selecting multiple objects by name</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112009#M23613</link>
      <description>sorry, got 1 more question. i have one environment in each file named something like&lt;BR /&gt;&lt;PRE&gt;E-Ly_Mountain_Ctrl_X_MoveAll&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;i'm just trying to search for it and put it in a variable, not an array. This isn't working.&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;EnvironmentName = &amp;amp;#36;*X_MoveAll* as string&lt;BR /&gt; format "%\n" EnvironmentName&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;this doesn't work either:&lt;BR /&gt;&lt;PRE&gt;EnvironmentName = getnodebyname &amp;amp;#36;*X_MoveAll* as string&lt;BR /&gt; format "%\n" EnvironmentName&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;sorry for this basic syntax type question...&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;brian</description>
      <pubDate>Mon, 14 Sep 2009 18:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selecting-multiple-objects-by-name/m-p/4112009#M23613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-14T18:38:30Z</dc:date>
    </item>
  </channel>
</rss>

