<?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 Corruption removing script in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965782#M28039</link>
    <description>Hello I am having an issue when coming to Max from Maya via collada exporter. its the only exporter that correctly transfers multiple sets of uv's. unfortunately it adds a node to all the geometry that corrupts the geometry. I found a work around that will delete the collada node but I have to do it to hundreds of thousands of scene items. I would really like a script to do this for me. The work around is as follows. &lt;BR /&gt;&lt;BR /&gt;     First create a cube. Then convert that cube into editable poly. Next select attach then select an item in the scene. When you do this it renames that object to the name of the cube I need to keep the name of the object that is being attached to the cube. After attaching the item to the cube the collada node is gone so the next step is to detach the cube and then name the recently attached item back to what it was named before. then repeat till everything in the scene has been put through this process. the biggest problem I see with this script is keeping the names of all the objects that are being attached. If anyone could help me out with this i would greatly appreciate it. Thanks.</description>
    <pubDate>Wed, 09 Jan 2008 00:00:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-01-09T00:00:10Z</dc:date>
    <item>
      <title>Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965782#M28039</link>
      <description>Hello I am having an issue when coming to Max from Maya via collada exporter. its the only exporter that correctly transfers multiple sets of uv's. unfortunately it adds a node to all the geometry that corrupts the geometry. I found a work around that will delete the collada node but I have to do it to hundreds of thousands of scene items. I would really like a script to do this for me. The work around is as follows. &lt;BR /&gt;&lt;BR /&gt;     First create a cube. Then convert that cube into editable poly. Next select attach then select an item in the scene. When you do this it renames that object to the name of the cube I need to keep the name of the object that is being attached to the cube. After attaching the item to the cube the collada node is gone so the next step is to detach the cube and then name the recently attached item back to what it was named before. then repeat till everything in the scene has been put through this process. the biggest problem I see with this script is keeping the names of all the objects that are being attached. If anyone could help me out with this i would greatly appreciate it. Thanks.</description>
      <pubDate>Wed, 09 Jan 2008 00:00:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965782#M28039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-09T00:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965783#M28040</link>
      <description>Here's a go at it...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;-- select Objects to convert and execute script...&lt;BR /&gt;-- make sure you're working in a COPY of your scene.&lt;BR /&gt;&lt;BR /&gt;for SelObj in Selection do&lt;BR /&gt;    (&lt;BR /&gt;-- save name&lt;BR /&gt;    local TempName = SelObj.name&lt;BR /&gt;    &lt;BR /&gt;-- create Poly object in same location and delete faces&lt;BR /&gt;    local TempObj = Box pos:SelObj.pos&lt;BR /&gt;    convertto TempObj editable_Poly&lt;BR /&gt;    polyOp.deleteFaces TempObj TempObj.faces delIsoVerts:true&lt;BR /&gt;&lt;BR /&gt;-- Attach to Poly Object In Selection&lt;BR /&gt;-- This attach will destroy the node : SelObj&lt;BR /&gt;    polyOp.attach TempObj SelObj&lt;BR /&gt;    TempObj.name = TempName &lt;BR /&gt;    )&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this works, or at least is a good start...</description>
      <pubDate>Wed, 09 Jan 2008 06:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965783#M28040</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2008-01-09T06:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965784#M28041</link>
      <description>awsome! i will certainly give this a shot and let you know if it works tomarrow. thanks for the time you took to help out i really appreciate it.</description>
      <pubDate>Wed, 09 Jan 2008 07:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965784#M28041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-09T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965785#M28042</link>
      <description>Looking at it again... you may want to change the &lt;BR /&gt;&lt;BR /&gt;pos:SelObj.pos&lt;BR /&gt;to&lt;BR /&gt;transform:SelObj.transform&lt;BR /&gt;&lt;BR /&gt;to get all the transformations of the original object... I'm not sure what it will have...</description>
      <pubDate>Wed, 09 Jan 2008 08:01:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965785#M28042</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2008-01-09T08:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965786#M28043</link>
      <description>Well this works great for individual objects but when i come across stuff that is grouped i have to traverse down the tree running the script for each object in the group unfortunately this is ungrouping things. I didn't think about this and now I'm not sure how to go about keeping my groups but still getting rid of the collada node. by the way I'm using " transform:SelObj.transform " thanks so much this is still going to save on a bunch of problems and headaches.</description>
      <pubDate>Wed, 09 Jan 2008 23:24:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965786#M28043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-09T23:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965787#M28044</link>
      <description>No big... this is easy stuff for me...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;-- select Objects to convert and execute script...&lt;BR /&gt;-- make sure you're working in a COPY of your scene.&lt;BR /&gt;&lt;BR /&gt;for SelObj in Selection do&lt;BR /&gt;    (&lt;BR /&gt;    if ( not isGroupHead SelObj ) then&lt;BR /&gt;        (&lt;BR /&gt;    -- save name&lt;BR /&gt;        local TempName = SelObj.name&lt;BR /&gt;        local TempParent = undefined&lt;BR /&gt;        if ( isgroupmember SelObj ) then TempParent = SelObj.parent&lt;BR /&gt;            &lt;BR /&gt;    -- create Poly object in same location and delete faces&lt;BR /&gt;        local TempObj = Box transform:SelObj.transform&lt;BR /&gt;        convertto TempObj editable_Poly&lt;BR /&gt;        polyOp.deleteFaces TempObj TempObj.faces delIsoVerts:true&lt;BR /&gt;    &lt;BR /&gt;    -- Attach to Poly Object In Selection&lt;BR /&gt;    -- This attach will destroy the node : SelObj&lt;BR /&gt;        polyOp.attach TempObj SelObj&lt;BR /&gt;        TempObj.name = TempName &lt;BR /&gt;&lt;BR /&gt;        if ( TempParent != undefined ) then&lt;BR /&gt;            (&lt;BR /&gt;            TempObj.parent = TempParent&lt;BR /&gt;            setGroupMember TempObj true&lt;BR /&gt;            append TempParent.children TempObj&lt;BR /&gt;            )&lt;BR /&gt;        ) &lt;BR /&gt;    )&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;5 min update for ya.. should keep your happy grouping... I hate groups in max..</description>
      <pubDate>Fri, 11 Jan 2008 03:30:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965787#M28044</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2008-01-11T03:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965788#M28045</link>
      <description>well that don't seem to be doing what i need it to. I have provided an image to show you what is going on. if you can think of any better way of getting rid of those nasty collada nodes feel free. I know I cant select them and delete them. As you should be able to see in the image the top node is the slider node I selected then ran the script and it separated it from the rest of the group and left all the collada nastiness in the rest of the tree. The script did get rid of the collada node attached to the slider though. I'm with you one hundred percent on not liking maxes grouping. especially when coming from a clean Maya scene.&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/1/1637_LFAd4dWCGLa3VFBjUbtz.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2008 04:57:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965788#M28045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-11T04:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965789#M28046</link>
      <description>Could you post up a small scene.. It appears the nodes have a Custom Attribute on them as well... the 'Collada CA'...  but I can not tell from what you sent...&lt;BR /&gt;&lt;BR /&gt;A scene with  just a few objects, perhaps the tree you've posted, so I can work with the actual objects....&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Fri, 11 Jan 2008 05:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965789#M28046</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2008-01-11T05:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Corruption removing script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965790#M28047</link>
      <description>I'm not sure why this isn't working i select the objects and run the script and it says "OK" but nothing happens and the scene is still corrupt. I'm using the scene i sent you as a test scene so if its working for you mabey I'm not doing something the same.</description>
      <pubDate>Mon, 14 Jan 2008 22:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/corruption-removing-script/m-p/3965790#M28047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-14T22:54:55Z</dc:date>
    </item>
  </channel>
</rss>

