<?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 transfering uvw data via maxscript in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134673#M22691</link>
    <description>i am completely new to maxscript, so maybe this is a dumb question:&lt;BR /&gt;i am trying to use maxscript to transfer uvw coordinates from one object to another.&lt;BR /&gt;my test file contains a poli called 01 and another one called 01a &amp;amp;#40;the final file will have a series of such groups &amp;amp;#40;02/02a, 03/03a,...&amp;amp;#41;&amp;amp;#41;.&lt;BR /&gt;01 has an unwrapUVW modifier containing the correct cordinates which should be transferred to 01a.&lt;BR /&gt;i tried with recording a drag and drop action of the modifier, but this did not work.&lt;BR /&gt;i also tried to safe and load the uvs with the following script:&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;macroScript Macro27&lt;BR /&gt; category:"DragAndDrop"&lt;BR /&gt; toolTip:""&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; actionMan.executeAction 0 "40021"  -- Selection: Select All&lt;BR /&gt; macros.run "Modifier Stack" "Convert_to_Poly"&lt;BR /&gt; &amp;amp;#36;.material = meditMaterials&lt;BR /&gt; clearSelection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; select &amp;amp;#36;a1&lt;BR /&gt; subobjectLevel = 4&lt;BR /&gt; &amp;amp;#36;.EditablePoly.attach &amp;amp;#36;1 &amp;amp;#36;&lt;BR /&gt; subobjectLevel = 0&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Uvwmap &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.length = 40.71&lt;BR /&gt; &amp;amp;#36;.modifiers.width = 210.34&lt;BR /&gt; modPanel.setCurrentObject &amp;amp;#36;.baseObject&lt;BR /&gt; subobjectLevel = 4&lt;BR /&gt; &amp;amp;#36;.EditablePoly.SetSelection #Face #{1}&lt;BR /&gt; actionMan.executeAction 0 "40020"  -- Edit: Delete Objects&lt;BR /&gt; &amp;amp;#36;.EditablePoly.delete #Face&lt;BR /&gt; subobjectLevel = 0&lt;BR /&gt; modPanel.setCurrentObject &amp;amp;#36;.modifiers&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Unwrap_UVW &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.unwrap.save &amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; select &amp;amp;#36;t1&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Unwrap_UVW &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.unwrap.load &amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;basically it works, but it asks me where to safe the uvw-file and then again asks which uvw file to load, which is not so convinient. can i specify a path in the script, which says where to save and load the uv date?&lt;BR /&gt;of course i would prefer transferring the data without saving in between.&lt;BR /&gt;any help would be appreciated</description>
    <pubDate>Thu, 11 Feb 2010 18:25:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-11T18:25:33Z</dc:date>
    <item>
      <title>transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134673#M22691</link>
      <description>i am completely new to maxscript, so maybe this is a dumb question:&lt;BR /&gt;i am trying to use maxscript to transfer uvw coordinates from one object to another.&lt;BR /&gt;my test file contains a poli called 01 and another one called 01a &amp;amp;#40;the final file will have a series of such groups &amp;amp;#40;02/02a, 03/03a,...&amp;amp;#41;&amp;amp;#41;.&lt;BR /&gt;01 has an unwrapUVW modifier containing the correct cordinates which should be transferred to 01a.&lt;BR /&gt;i tried with recording a drag and drop action of the modifier, but this did not work.&lt;BR /&gt;i also tried to safe and load the uvs with the following script:&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;macroScript Macro27&lt;BR /&gt; category:"DragAndDrop"&lt;BR /&gt; toolTip:""&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; actionMan.executeAction 0 "40021"  -- Selection: Select All&lt;BR /&gt; macros.run "Modifier Stack" "Convert_to_Poly"&lt;BR /&gt; &amp;amp;#36;.material = meditMaterials&lt;BR /&gt; clearSelection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; select &amp;amp;#36;a1&lt;BR /&gt; subobjectLevel = 4&lt;BR /&gt; &amp;amp;#36;.EditablePoly.attach &amp;amp;#36;1 &amp;amp;#36;&lt;BR /&gt; subobjectLevel = 0&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Uvwmap &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.length = 40.71&lt;BR /&gt; &amp;amp;#36;.modifiers.width = 210.34&lt;BR /&gt; modPanel.setCurrentObject &amp;amp;#36;.baseObject&lt;BR /&gt; subobjectLevel = 4&lt;BR /&gt; &amp;amp;#36;.EditablePoly.SetSelection #Face #{1}&lt;BR /&gt; actionMan.executeAction 0 "40020"  -- Edit: Delete Objects&lt;BR /&gt; &amp;amp;#36;.EditablePoly.delete #Face&lt;BR /&gt; subobjectLevel = 0&lt;BR /&gt; modPanel.setCurrentObject &amp;amp;#36;.modifiers&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Unwrap_UVW &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.unwrap.save &amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; select &amp;amp;#36;t1&lt;BR /&gt; modPanel.addModToSelection &amp;amp;#40;Unwrap_UVW &amp;amp;#40;&amp;amp;#41;&amp;amp;#41; ui:on&lt;BR /&gt; &amp;amp;#36;.modifiers.unwrap.load &amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;basically it works, but it asks me where to safe the uvw-file and then again asks which uvw file to load, which is not so convinient. can i specify a path in the script, which says where to save and load the uv date?&lt;BR /&gt;of course i would prefer transferring the data without saving in between.&lt;BR /&gt;any help would be appreciated</description>
      <pubDate>Thu, 11 Feb 2010 18:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134673#M22691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T18:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134674#M22692</link>
      <description>Maybe is a too simple idea, but why not to try just to copy modifier?&lt;BR /&gt;&lt;PRE&gt;-- just example&lt;BR /&gt;-- myPairs = #&amp;amp;#40;&amp;amp;#36;objA, &amp;amp;#36;objB&amp;amp;#41;&lt;BR /&gt;addModifier &amp;amp;#36;objB &amp;amp;#40;copy &amp;amp;#36;objA.modifiers&amp;amp;#41;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2010 19:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134674#M22692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T19:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134675#M22693</link>
      <description>thanks for the quick response!&lt;BR /&gt;basically it works, the modifier is transferred.&lt;BR /&gt;the problem is: the uvw-coordinates are not transferred.&lt;BR /&gt;when doing the same with a simple bend modifier or uvw mapping, it works as expected, all the settings within the modifiers are transferred.&lt;BR /&gt;btw: both my objects are prepared for uvw matching &amp;amp;#40;same vertex count, etc.&amp;amp;#41;. tranferring manually via .uvw-file works fine</description>
      <pubDate>Fri, 12 Feb 2010 09:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134675#M22693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134676#M22694</link>
      <description>Yes, I know, load/save via MaxScript without popup dialog feature is asked many times, unfortunately is not implemented yet.</description>
      <pubDate>Fri, 12 Feb 2010 13:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134676#M22694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134677#M22695</link>
      <description>i see ....&lt;BR /&gt;do you know, if it is possible to specify a certain file name and path to temporarily safe and load the uv file?</description>
      <pubDate>Fri, 12 Feb 2010 16:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134677#M22695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134678#M22696</link>
      <description>nope &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; so em i wish to do this... nor yet third party SDK extensions for this.</description>
      <pubDate>Fri, 12 Feb 2010 21:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134678#M22696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134679#M22697</link>
      <description>It is possible, but messy.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I &lt;B&gt;cannot&lt;/B&gt; guarantee this will work on all systems - I don't have Vista or Win7 to try it on.&lt;BR /&gt;It does appear to work on XP-64.&lt;BR /&gt;&lt;BR /&gt;Use at your own risk!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, if you get the situation where you would be overwriting a file, you &lt;B&gt;will&lt;/B&gt; get the "Overwrite Yes/No" dialog. It would be best to ensure that the file does not exist &amp;amp;#40;using the normal getFiles and deleteFile functions&amp;amp;#41;, though the following code could be expanded &amp;amp;#40;duplicated, almost&amp;amp;#41; to spot that dialog and auto-press the Yes button.&lt;BR /&gt;&lt;BR /&gt;Enjoy - I'm off to sunnier climes where you &amp;amp;#40;hopefully&amp;amp;#41; can't find me...&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;DialogMonitorOPS.unRegisterNotification id:#eyeInTheSky&lt;BR /&gt;&lt;BR /&gt;fn dmnotification = &lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt;WindowHandle = DialogMonitorOPS.GetWindowHandle&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;WindowName = UIAccessor.GetWindowText WindowHandle&lt;BR /&gt;if WindowName != undefined then&lt;BR /&gt;   &amp;amp;#40;&lt;BR /&gt;   if &amp;amp;#40;findString WindowName "Save UVW"&amp;amp;#41; != undefined then&lt;BR /&gt;      &amp;amp;#40;&lt;BR /&gt;      cWindows = UIAccessor.GetChildWindows WindowHandle&lt;BR /&gt;      entryField = 0&lt;BR /&gt;      for t = 1 to cWindows.count do&lt;BR /&gt;         &amp;amp;#40;&lt;BR /&gt;         if cWindows&lt;T&gt; != 0 then&lt;BR /&gt;            &amp;amp;#40;&lt;BR /&gt;            if &amp;amp;#40;UIAccessor.GetWindowClassName cWindows&lt;T&gt;&amp;amp;#41; == "ComboBoxEx32" then&lt;BR /&gt;               entryField = cWindows&lt;T&gt;&lt;BR /&gt;            &amp;amp;#41;&lt;BR /&gt;         &amp;amp;#41;&lt;BR /&gt;      if entryField != 0 then&lt;BR /&gt;         &amp;amp;#40;&lt;BR /&gt;         UIAccessor.SetWindowText entryField "C:\\Temp\\tmp.uvw"&lt;BR /&gt;         UIAccessor.PressButtonByName WindowHandle "&amp;amp;Save"&lt;BR /&gt;         &amp;amp;#41;&lt;BR /&gt;      &amp;amp;#41;&lt;BR /&gt;   &amp;amp;#41;&lt;BR /&gt;true&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;DialogMonitorOPS.RegisterNotification dmnotification id:#eyeInTheSky&lt;BR /&gt;DialogMonitorOPS.Enabled = true&lt;BR /&gt;&lt;BR /&gt;&amp;amp;#36;.modifiers.unwrap.save&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;DialogMonitorOPS.Enabled = false&lt;BR /&gt;DialogMonitorOPS.unRegisterNotification id:#eyeInTheSky&lt;BR /&gt;&lt;/T&gt;&lt;/T&gt;&lt;/T&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;NB. This is one occasion where you cannot use "C:/Temp/Filename.ext" - you &lt;B&gt;must&lt;/B&gt; use the \\ version.</description>
      <pubDate>Fri, 12 Feb 2010 22:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134679#M22697</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-12T22:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134680#M22698</link>
      <description>Wow, Steve, you're awesome person! Thanks a lot! :&amp;amp;#41;&amp;amp;#41;</description>
      <pubDate>Fri, 12 Feb 2010 23:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134680#M22698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T23:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134681#M22699</link>
      <description>It's not really much more than a modification to the sample code in the help for the UIAccessor functions. They tricky bit is having to run it &amp;amp;#40;with lots of debug prints&amp;amp;#41; to find the actual window you want, bearing in mind that every button, toolbar even the static text is a "window". Once you know which one you want it's not too bad.&lt;BR /&gt;Still a messy way to have to do it when a built-in function &amp;amp;#40;with options for the filename, overwrite and so on&amp;amp;#41; really shouldn't be too difficult to implement.</description>
      <pubDate>Fri, 12 Feb 2010 23:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134681#M22699</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-12T23:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134682#M22700</link>
      <description>I must admit that I had not the courage to play with the UIAccessor &amp;amp;#40;yet&amp;amp;#41; :&amp;amp;#41; &lt;BR /&gt;Sincere thanks for all your help and tips!</description>
      <pubDate>Sat, 13 Feb 2010 00:12:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134682#M22700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-13T00:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134683#M22701</link>
      <description>You're welcome :&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;If you want a different example of using the UIAccessor functions see &lt;A href="http://area.autodesk.com/forum/autodesk-3ds-max/maxscript/stl-batch-export-script-help" target="_blank"&gt;this thread&lt;/A&gt;. Fun and games trying to toggle a checkbox :&amp;amp;#41;&lt;BR /&gt;I had to google for how to do that one...</description>
      <pubDate>Sat, 13 Feb 2010 10:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134683#M22701</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-13T10:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134684#M22702</link>
      <description>A very useful example, thanks! It pointer me to the next step. You wrote a "clean" function &amp;amp;#40;without arguments&amp;amp;#41; and pass variable by changing globals, I like this trick :&amp;amp;#41; Thanks again!</description>
      <pubDate>Sat, 13 Feb 2010 13:34:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134684#M22702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-13T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134685#M22703</link>
      <description>You don't actually have much choice in that instance. Remember that the function is being called by a Windows Event - rather like an "on button pressed" routine in a dialog, but without knowing which button was pressed. The script reacts to the opening of the dialog so you can't really pass parameters to it because you &amp;amp;#40;the rest of the script&amp;amp;#41; didn't call it directly. A Global seemed the easiest way of getting around that :&amp;amp;#41;</description>
      <pubDate>Sat, 13 Feb 2010 13:53:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134685#M22703</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-13T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134686#M22704</link>
      <description>hi steve,&lt;BR /&gt;thanks for the help.&lt;BR /&gt;i will try to build it into my script. as i said, i am an absolute beginner, so it will take some time to check it.&lt;BR /&gt;i am on x64, so hopefully it works.</description>
      <pubDate>Sat, 13 Feb 2010 17:43:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134686#M22704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-13T17:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134687#M22705</link>
      <description>You're welcome. Just bear in mind that the above script only deals with the saving of the UVW file - you would need to deal with the loading of it by duplicating part of the function, checking for the different dialog and possibly a different component too.</description>
      <pubDate>Sat, 13 Feb 2010 20:14:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134687#M22705</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-13T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134688#M22706</link>
      <description>I'm still on "save" handle 'cause the issue is complicated :&amp;amp;#41; but I think to share what I let out and how I solve &amp;amp;#40;or plan to solve&amp;amp;#41; incoming trammel, just to can help to others who plan to fight with this :&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;So, first, buttonOPS are binded to their rollout, or shortly - Modify panel must be open and Unwrap_UVW modifier must be selected; else the "lovely" error &amp;amp;#40;"system exception"&amp;amp;#41; will appear.&lt;BR /&gt;&lt;PRE&gt;b = box&amp;amp;#40;&amp;amp;#41; -- create Box&lt;BR /&gt;m = Unwrap_UVW&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;addModifier b m&lt;BR /&gt;max modify mode -- open modify panel&lt;BR /&gt;modPanel.setCurrentObject m -- select Unwrap_UVW modifier&lt;BR /&gt;-- then call ...&lt;BR /&gt;m.save&amp;amp;#40;&amp;amp;#41;&lt;/PRE&gt;&lt;BR /&gt;The second is bound to Max2009. In Max9 test shown no problem. So... to test in Max2009 just continue above example by executing &amp;amp;#40;line by line&amp;amp;#41; this code:&lt;BR /&gt;&lt;PRE&gt;m.save&amp;amp;#40;&amp;amp;#41; -- "sleep"&lt;BR /&gt;m.load&amp;amp;#40;&amp;amp;#41; -- "sleep"&lt;BR /&gt;m.save&amp;amp;#40;&amp;amp;#41; -- now works&lt;BR /&gt;m.load&amp;amp;#40;&amp;amp;#41; -- now works&lt;/PRE&gt;&lt;BR /&gt;Shortly, some "sleep" bug in Max2009 tied to Unwrap Save/Load functions. They return OK but not execute corresponding dialog window, and "wake up" only...: &lt;BR /&gt; after push the button manual &amp;amp;#40;at least once&amp;amp;#41;.&lt;BR /&gt; after call them in cross order, &amp;amp;#40;inconvenient way&amp;amp;#41; i.e:&lt;BR /&gt;&lt;PRE&gt;m.save&amp;amp;#40;&amp;amp;#41; ; m.load&amp;amp;#40;&amp;amp;#41; ; m.save&amp;amp;#40;&amp;amp;#41; -- to save .uvw&lt;BR /&gt;m.load&amp;amp;#40;&amp;amp;#41; ; m.save&amp;amp;#40;&amp;amp;#41; ; m.load&amp;amp;#40;&amp;amp;#41; -- to load .uvw&lt;/PRE&gt;&lt;BR /&gt;If repeat the test, you'll see the functions need "wake up" &lt;B&gt;for each&lt;/B&gt; modifier. This complicate the task too much &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; If going in this direction then 'cause there &lt;U&gt;no way&lt;/U&gt; to detect MaxScript accessibility to the functions, you'll need to reset Max, reopen the file and call both function for each modifiers.  Not only complicated but not &amp;amp;#40;always&amp;amp;#41; works smoothly as well.&lt;BR /&gt;Well... I found third way too:&lt;BR /&gt; after "edit&amp;amp;#40;&amp;amp;#41;" both &amp;amp;#40;save/load&amp;amp;#41; function react as needed/expected. So, now I'll need &amp;amp;#40;i.e. I plan&amp;amp;#41; to write DialogMonitorOPS for "edit" too to can fix this in Max2009.&lt;BR /&gt;&lt;BR /&gt; Here is my auto-close callback for edit uvw dialog:&lt;BR /&gt;&lt;PRE&gt;DialogMonitorOPS.unRegisterNotification id:#wakeupUnwrapButtons&lt;BR /&gt;&lt;BR /&gt;fn closeEditUvwDialog = &lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt;    WindowHandle = DialogMonitorOPS.GetWindowHandle&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;    WindowName = UIAccessor.GetWindowText WindowHandle&lt;BR /&gt;    if WindowName != undefined do&lt;BR /&gt;    &amp;amp;#40;&lt;BR /&gt;        if &amp;amp;#40;findString WindowName "Edit UVWs"&amp;amp;#41; != undefined do&lt;BR /&gt;        &amp;amp;#40;&lt;BR /&gt;            UIAccessor.CloseDialog WindowHandle&lt;BR /&gt;            subobjectLevel = 0&lt;BR /&gt;        &amp;amp;#41;&lt;BR /&gt;    &amp;amp;#41;&lt;BR /&gt;    true&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;DialogMonitorOPS.RegisterNotification closeEditUvwDialog id:#wakeupUnwrapButtons&lt;BR /&gt;DialogMonitorOPS.Enabled = true&lt;BR /&gt;&lt;BR /&gt;&amp;amp;#36;.modifiers.edit&amp;amp;#40;&amp;amp;#41; -- test&lt;BR /&gt;&lt;BR /&gt;DialogMonitorOPS.Enabled = false&lt;BR /&gt;DialogMonitorOPS.unRegisterNotification id:#wakeupUnwrapButtons&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Any better solution &amp;amp;#40;if you know?&amp;amp;#41; is welcome of course.</description>
      <pubDate>Sun, 14 Feb 2010 21:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134688#M22706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-14T21:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134689#M22707</link>
      <description>If the vertex count is the same then you may want to look at ChannelInfo or using the Projection modifier to transfer the mapping data.&lt;BR /&gt;&lt;BR /&gt;-Eric</description>
      <pubDate>Tue, 16 Feb 2010 23:41:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134689#M22707</guid>
      <dc:creator>PiXeL_MoNKeY</dc:creator>
      <dc:date>2010-02-16T23:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134690#M22708</link>
      <description>Thanks for your advice, ChannelInfo or Projection help in any cases... However, manual copy/paste unwrap_UVW also works fine, just doing via MaxScript is wrong but... I have a good news... I found a very elegant solution using "swap" function &amp;amp;#40;an awesome miscellaneous funcion that save my *** :&amp;amp;#41; many times in a lot of situations&amp;amp;#41;. If anybody need my way, I'll share "how to". Thanks again for the reply.</description>
      <pubDate>Wed, 17 Feb 2010 02:42:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134690#M22708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-17T02:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134691#M22709</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;BR /&gt;&lt;BR /&gt;You’re welcome. Just bear in mind that the above script only deals with the saving of the UVW file - you would need to deal with the loading of it by duplicating part of the function, checking for the different dialog and possibly a different component too. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;thanks again for the elaborate explanation.&lt;BR /&gt;sounds good so far.&lt;BR /&gt;think i will take some help to adhere your tips.&lt;BR /&gt;cheers   roberto</description>
      <pubDate>Wed, 17 Feb 2010 07:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134691#M22709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-17T07:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: transfering uvw data via maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134692#M22710</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If the vertex count is the same then you may want to look at ChannelInfo or using the Projection modifier to transfer the mapping data.&lt;BR /&gt;&lt;BR /&gt;-Eric&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;sounds promising.&lt;BR /&gt;i will give it a try and feedback</description>
      <pubDate>Wed, 17 Feb 2010 07:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/transfering-uvw-data-via-maxscript/m-p/4134692#M22710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-17T07:22:04Z</dc:date>
    </item>
  </channel>
</rss>

