<?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: MAXScript Custom Attribute problem in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061109#M25125</link>
    <description>Keith,&lt;BR /&gt;&lt;BR /&gt;This still does not work. The issue is not that it isn't saved with the file. If I close MAX and re-launch it, then open the file the settings are there - no problem. The issue is if you re-open the file WITHOUT CLOSING MAX, then the values go to zero. Adding the attribID did not fix this. If that is actually working on your machine, then there must be something about certain installations that is causing this.&lt;BR /&gt;&lt;BR /&gt;Ken</description>
    <pubDate>Tue, 16 Jun 2009 16:34:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-16T16:34:36Z</dc:date>
    <item>
      <title>MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061100#M25116</link>
      <description>I'm wondering if anyone has seen this problem. I add a custom attribute to an object and save the file. Without closing max I re-open the file. All my custom attribute spinners read zero. When I query the parameters via maxscript I get all the correct values, so the attributes have in fact been preserved. if I try to change a spinner value I get the "attempt to access a deleted scene object" message. The custom attribute was created with #unique. Furthermore, if instead of re-opening the file in the same max session I completely close out of max and restart it, then when I open the file the parameters are indeed showing correctly in the spinners. &lt;BR /&gt;&lt;BR /&gt;I know I'm missing something but I have no idea what it could be. Any help is appreciated.</description>
      <pubDate>Fri, 13 Feb 2009 03:23:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061100#M25116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-13T03:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061101#M25117</link>
      <description>I have the exact same problem... In my case my CA aren't #unique'd but the same thing happens a lot, I can fix it manually if I re-run the script after making any change to the custom attribute definition. And i really mean ANY change, even inserting an space character will make my spinners come back from death. Did you find a solution?&lt;BR /&gt;&lt;BR /&gt;Thanks in advanced,&lt;BR /&gt;&lt;BR /&gt;Juan G. Campa</description>
      <pubDate>Tue, 16 Jun 2009 00:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061101#M25117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T00:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061102#M25118</link>
      <description>No I haven't. I've done more searches, etc but just can't find anything. We're just living with it for now.</description>
      <pubDate>Tue, 16 Jun 2009 00:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061102#M25118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T00:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061103#M25119</link>
      <description>What Version of Max?  I'm still on 9 and haven't seen this..&lt;BR /&gt;&lt;BR /&gt;Can you make a single item CA and show the issue?</description>
      <pubDate>Tue, 16 Jun 2009 00:44:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061103#M25119</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2009-06-16T00:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061104#M25120</link>
      <description>It's pretty easy to duplicate. I'm on 3ds Max 9. Do the following:&lt;BR /&gt;&lt;BR /&gt;1. Use the sample CA code from the Maxscript help file:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;weaponDataCA = attributes weaponData&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; parameters main rollout:params&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; hitPoints type:#float ui:hits default:10&lt;BR /&gt; cost type:#float ui:cost default:100&lt;BR /&gt; sound type:#string &lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt; rollout params "Weapon Parameters"&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; spinner hits "Hit Points" type:#float&lt;BR /&gt; spinner cost "Cost" type:#float&lt;BR /&gt; dropdownlist sound_dd "Sound" items:#&amp;amp;#40;"boom", "sparkle", "zap", "fizzle"&amp;amp;#41; &lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;custAttributes.add &amp;amp;#36;sphere01 weaponDataCA&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;2. Make a sphere and run the script to attach the attribute to &amp;amp;#36;Sphere01&lt;BR /&gt;3. Save your file.&lt;BR /&gt;4. Now open the file without closing Max.&lt;BR /&gt;5. Select the sphere. All the CA spinners will show 0.00</description>
      <pubDate>Tue, 16 Jun 2009 01:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061104#M25120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T01:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061105#M25121</link>
      <description>Ok, here's an example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;global TestAttribute = attributes TestAttribute&lt;BR /&gt; attribID:#&amp;amp;#40;0x14ef2451, 0x750fbe76&amp;amp;#41;&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; parameters main rollout:prop&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; TheValue type:#float ui:spinny&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt; rollout prop "Stage properties"&lt;BR /&gt; &amp;amp;#40;&lt;BR /&gt; Spinner spinny "The value is"&lt;BR /&gt; &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I assign it to an object using&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt; custAttributes.add &amp;amp;#36; TestAttribute &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;everything ok so far...&lt;BR /&gt;&lt;BR /&gt;I re-run the attribute script, everything ok&lt;BR /&gt;I re-run the script again... Boom! spinners dead.&lt;BR /&gt;I re-run the script again... Not working.&lt;BR /&gt;I re-run the script again... Nothing, they're dead.&lt;BR /&gt;&lt;BR /&gt;I insert a space anywhere in the attribute definition above and hit ctrl+E and the spinners come back to life.&lt;BR /&gt;&lt;BR /&gt;There you go, can you test this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Juan G. Campa</description>
      <pubDate>Tue, 16 Jun 2009 01:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061105#M25121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T01:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061106#M25122</link>
      <description>BTW, I'm also using Max 2009...</description>
      <pubDate>Tue, 16 Jun 2009 01:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061106#M25122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T01:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061107#M25123</link>
      <description>I also noticed that the buttons from the CA's rollout never stop working...</description>
      <pubDate>Tue, 16 Jun 2009 01:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061107#M25123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061108#M25124</link>
      <description>For the Values of a CA to save with the file, they need a attribute class ID, otherwise, as stated in the help "Attribute definitions without attribID's are private to the current MAX session."&lt;BR /&gt;&lt;BR /&gt;So adding an ID is step one...also:&lt;BR /&gt;&lt;BR /&gt;The sound type should be a #integer type, not string to store an integer index of the array.&lt;BR /&gt;&lt;BR /&gt;The UI element of the Sound needs to be linked to the dropdownlist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*********  StartCode &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;weaponDataCA = attributes weaponData&lt;BR /&gt;&lt;B&gt;attribID:#&amp;amp;#40;0x130a5ca3, 0x70571c5a&amp;amp;#41;&lt;/B&gt;&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; parameters main rollout:params&lt;BR /&gt;  &amp;amp;#40;&lt;BR /&gt;  HitPoints ui:hits_sp type:#float default:10&lt;BR /&gt;  Cost ui:cost_sp type:#float default:100&lt;BR /&gt;  Sound &lt;B&gt;ui:sound_dd type:#integer default:1&lt;/B&gt;  &lt;BR /&gt;  &amp;amp;#41;&lt;BR /&gt; rollout params "Weapon Parameters"&lt;BR /&gt;  &amp;amp;#40;&lt;BR /&gt;  spinner hits_sp "Hit Points" type:#float&lt;BR /&gt;  spinner cost_sp "Cost" type:#float&lt;BR /&gt;  dropdownlist sound_dd "Sound" items:#&amp;amp;#40;"boom", "sparkle", "zap", "fizzle"&amp;amp;#41; &lt;BR /&gt;  &amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;custAttributes.add &amp;amp;#36;'sphere01' weaponDataCA &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*********  EndCode &lt;BR /&gt;&lt;BR /&gt;* hate the code coloring on this site!</description>
      <pubDate>Tue, 16 Jun 2009 16:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061108#M25124</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2009-06-16T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061109#M25125</link>
      <description>Keith,&lt;BR /&gt;&lt;BR /&gt;This still does not work. The issue is not that it isn't saved with the file. If I close MAX and re-launch it, then open the file the settings are there - no problem. The issue is if you re-open the file WITHOUT CLOSING MAX, then the values go to zero. Adding the attribID did not fix this. If that is actually working on your machine, then there must be something about certain installations that is causing this.&lt;BR /&gt;&lt;BR /&gt;Ken</description>
      <pubDate>Tue, 16 Jun 2009 16:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061109#M25125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061110#M25126</link>
      <description>Process:&lt;BR /&gt;Open Max&lt;BR /&gt;Create Sphere&lt;BR /&gt;Run Script pasted in to a "new script" to Apply Mod.&lt;BR /&gt;Save Max File&lt;BR /&gt;Open Max File&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get the default values in max 9 and 2009 appearing when selecting the sphere after opening.  Did this with my code example and your 'Stage Properties" spinner example.  Worked as expected.&lt;BR /&gt;&lt;BR /&gt;I'm not familar with the  "&amp;amp;#36;" part of your CA.add call...  What's that?  It causes an error on my system.  or is that just 'The Area' reformatting code for you?  sooo helpful...</description>
      <pubDate>Thu, 18 Jun 2009 00:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061110#M25126</guid>
      <dc:creator>keithm</dc:creator>
      <dc:date>2009-06-18T00:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: MAXScript Custom Attribute problem</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061111#M25127</link>
      <description>That works for me too, the problem is when I re-run the script... Try running the script several times without closing or reopening the .max</description>
      <pubDate>Thu, 18 Jun 2009 01:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-custom-attribute-problem/m-p/4061111#M25127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-18T01:21:29Z</dc:date>
    </item>
  </channel>
</rss>

