<?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: Search and replace node names through Python in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773268#M7697</link>
    <description>&lt;P&gt;Ok...with the search function in scenegraph and a little script it's fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;node = getSelectedNodes()
for i in node:
    name = i.getName()
    name = name.replace("a555_", "555-")
    i.setName(name)&lt;/PRE&gt;&lt;P&gt;Sorry for the inconvenience...not really awake this morning.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 08:35:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-13T08:35:00Z</dc:date>
    <item>
      <title>Search and replace node names through Python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773141#M7696</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if it's possible to do a "search and replace" function in python, to rename all the nodes in my scene.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My files comes from maya, and maya don't like nodes wich begins with a number...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I have a lot of nodes named "a555_444444" and i want a lot of nodes named "555-444444"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this function ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:38:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773141#M7696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search and replace node names through Python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773268#M7697</link>
      <description>&lt;P&gt;Ok...with the search function in scenegraph and a little script it's fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;node = getSelectedNodes()
for i in node:
    name = i.getName()
    name = name.replace("a555_", "555-")
    i.setName(name)&lt;/PRE&gt;&lt;P&gt;Sorry for the inconvenience...not really awake this morning.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 08:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773268#M7697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search and replace node names through Python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773313#M7698</link>
      <description>&lt;P&gt;nice one&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 08:52:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/search-and-replace-node-names-through-python/m-p/7773313#M7698</guid>
      <dc:creator>seiferp</dc:creator>
      <dc:date>2018-02-13T08:52:49Z</dc:date>
    </item>
  </channel>
</rss>

