<?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 listener assistance in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7620859#M11515</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/203084"&gt;@istan&lt;/a&gt;. I am starting to discover that. Too bad I don't already know some of the other languages.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 16:18:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-13T16:18:27Z</dc:date>
    <item>
      <title>Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7605480#M11501</link>
      <description>&lt;P&gt;I am new at maxscript and always have wanted to use it but don't know how.&amp;nbsp; Now I have a redundant application that I would like to try to use maxscript listener to do it. or write a script. (if I knew how)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what i would like to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. select an object&lt;/P&gt;
&lt;P&gt;2. quadify selection (listener does not pick this up)&lt;/P&gt;
&lt;P&gt;3. uvw map, box, uncheck Real-World Map size&lt;/P&gt;
&lt;P&gt;4. assign material map called "stainless"&lt;/P&gt;
&lt;P&gt;5. end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help me with this?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:49:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7605480#M11501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7606281#M11502</link>
      <description>&lt;P&gt;Hi there, that's great that you're learing MAXScript.&amp;nbsp; Not everything gets picked up by the Macrorecorder, so you have to start digging through the MAXScript help to figure out what's possible and how to do it.&amp;nbsp; For your script, see if this gets you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;t = teapot()
convertto t editable_poly
select t -- select the node
q = Quadify_Mesh() -- create a Quadrify modifier
addModifier t q -- add the modifier to our node
u = UVWMap() -- create a UVWMap modifier
u.realWorldMapSize = false -- same as unchecking "Real World Map Size" checkbox
addmodifier t u -- add it to the node
mat = scenematerials["stainless"] -- find the scene material named "stainless"
-- note: this must exist on an item in the scene
t.material=mat -- apply the material to the node&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script creates a node and selects it, yours would start with something like:&lt;/P&gt;
&lt;PRE&gt;myNode = $&lt;/PRE&gt;
&lt;P&gt;Where $ gets the selected node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:11:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7606281#M11502</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-12-07T21:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613319#M11503</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1985099"&gt;@drew_avis&lt;/a&gt;&amp;nbsp;I tried to run your script just as a starting point but I get MAXScrip FileIn Exception error&lt;/P&gt;
&lt;P&gt;--NO ""convertTo""function for unefined&lt;/P&gt;
&lt;P&gt;I even commented the line # 2 "&lt;STRONG&gt;convertto t editable_poly&lt;/STRONG&gt;" out and is still get the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:46:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613319#M11503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613446#M11504</link>
      <description>&lt;P&gt;delay my last I think I am just starting to talk to it lol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:29:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613446#M11504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613522#M11505</link>
      <description>&lt;P&gt;myNode = $&lt;BR /&gt;--convertto $ editable_poly&lt;BR /&gt;select $ -- select the node&lt;BR /&gt;q = Quadify_Mesh() -- create a Quadrify modifier&lt;BR /&gt;addModifier t q -- add the modifier to our node&lt;BR /&gt;u = UVWMap() -- create a UVWMap modifier&lt;BR /&gt;u.realWorldMapSize = false -- same as unchecking "Real World Map Size" checkbox&lt;BR /&gt;addmodifier t u -- add it to the node&lt;BR /&gt;mat = scenematerials["stainless"] -- find the scene material named "stainless"&lt;BR /&gt;-- note: this must exist on an item in the scene&lt;BR /&gt;t.material=mat -- apply the material to the node&lt;/P&gt;
&lt;P&gt;I am getting this...&lt;/P&gt;
&lt;P&gt;undefined&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: S:\APEC COMPANY DOCUMENT SHARED FOLDER\Engineering\Mechanical Engineering\Assembly &amp;amp; Maintenance instruction\Standard Equipment\Coater\MC-70T\downloads\quad&amp;amp;assignmat.ms; position: 69; line: 3&lt;BR /&gt;-- No ""select"" function for undefined&lt;BR /&gt;-- MAXScript callstack:&lt;BR /&gt;-- thread data: threadID:11424&lt;BR /&gt;-- ------------------------------------------------------&lt;BR /&gt;-- [stack level: 0]&lt;BR /&gt;-- In top-level&lt;BR /&gt;Quadify_Mesh:Quadify Mesh&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: S:\APEC COMPANY DOCUMENT SHARED FOLDER\Engineering\Mechanical Engineering\Assembly &amp;amp; Maintenance instruction\Standard Equipment\Coater\MC-70T\downloads\quad&amp;amp;assignmat.ms; position: 168; line: 5&lt;BR /&gt;-- No ""addModifier"" function for undefined&lt;BR /&gt;-- MAXScript callstack:&lt;BR /&gt;-- thread data: threadID:11424&lt;BR /&gt;-- ------------------------------------------------------&lt;BR /&gt;-- [stack level: 0]&lt;BR /&gt;-- In top-level&lt;BR /&gt;Uvwmap:UVW Map&lt;BR /&gt;false&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: S:\APEC COMPANY DOCUMENT SHARED FOLDER\Engineering\Mechanical Engineering\Assembly &amp;amp; Maintenance instruction\Standard Equipment\Coater\MC-70T\downloads\quad&amp;amp;assignmat.ms; position: 330; line: 8&lt;BR /&gt;-- No ""addModifier"" function for undefined&lt;BR /&gt;-- MAXScript callstack:&lt;BR /&gt;-- thread data: threadID:11424&lt;BR /&gt;-- ------------------------------------------------------&lt;BR /&gt;-- [stack level: 0]&lt;BR /&gt;-- In top-level&lt;BR /&gt;stainless:Standard&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: S:\APEC COMPANY DOCUMENT SHARED FOLDER\Engineering\Mechanical Engineering\Assembly &amp;amp; Maintenance instruction\Standard Equipment\Coater\MC-70T\downloads\quad&amp;amp;assignmat.ms; position: 509; line: 11&lt;BR /&gt;-- Unknown property: "material" in undefined&lt;BR /&gt;-- MAXScript callstack:&lt;BR /&gt;-- thread data: threadID:11424&lt;BR /&gt;-- ------------------------------------------------------&lt;BR /&gt;-- [stack level: 0]&lt;BR /&gt;-- In top-level&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:54:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613522#M11505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613532#M11506</link>
      <description>&lt;P&gt;this is what i want to replace with a script.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 14:00:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7613532#M11506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614003#M11507</link>
      <description>&lt;P&gt;I hope you read the latest first. My previous post on this topic can be ignored.&lt;/P&gt;
&lt;P&gt;Here is where i am at&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1985099"&gt;@drew_avis&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Using your program other then the first couple lines. I have managed to get to this point. (please see attached)&lt;/P&gt;
&lt;P&gt;I have a couple questions at this point;&lt;/P&gt;
&lt;P&gt;1. What would be the syntax to prompt me for a selection then equal that select to "T"?&lt;/P&gt;
&lt;P&gt;I have tried to put in your suggested myNode = $ and the next line saying t = $ but that don't work.&lt;/P&gt;
&lt;P&gt;2. I noticed that it does not select "box" nor does it un-select "Real-world map size"&amp;nbsp; in the uvw map&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks this is really helping me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 16:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614003#M11507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614469#M11508</link>
      <description>&lt;P&gt;Hi there, so I think you're getting close.&amp;nbsp; I think you have 2 options for dealing with the selection:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Assume that an object is selected before you run the script.&amp;nbsp; You can verify this when you get the node, and exit with a message if you don't have something selected.&amp;nbsp; This would look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if selection.count != 1 then (print "Please select one object and run again.")
else (
myNode = $
-- etc

)&lt;/PRE&gt;
&lt;P&gt;2) Attach a callback that detects when nodes are selected and runs when only one is selected.&amp;nbsp; You are getting into more advanced territory here.&amp;nbsp; This would look something like:&lt;/P&gt;
&lt;PRE&gt;fn doSomeStuff = 
(
	if selection.count == 1 then (
		myNode = $
		print myNode
		callbacks.removeScripts #selectionSetChanged id:#doStuff
                -- now do some stuff
	)
	else print "Select one object please"
)

callbacks.addScript #selectionSetChanged "doSomeStuff()" id:#doStuff&lt;/PRE&gt;
&lt;P&gt;Let me have a look at why the UVW map options aren't being set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 18:30:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614469#M11508</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-12-11T18:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614489#M11509</link>
      <description>&lt;P&gt;Huh, I can't reproduce what you're seeing with the UVW Map modifier.&amp;nbsp; The mapping isn't box because we don't set it in the script.&amp;nbsp; In this version I set it, and it looks ok.&amp;nbsp; Are you seeing any errors in your listener when you run this script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;t = box()
convertto t editable_poly
select t -- select the node
q = Quadify_Mesh() -- create a Quadrify modifier
addModifier t q -- add the modifier to our node
u = UVWMap() -- create a UVWMap modifier
u.realWorldMapSize = false -- same as unchecking "Real World Map Size" checkbox
u.maptype = 4 -- set to box
addmodifier t u -- add it to the node
mat = scenematerials["stainless"] -- find the scene material named "stainless"
-- note: this must exist on an item in the scene
t.material=mat -- apply the material to the node&lt;/PRE&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 18:36:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614489#M11509</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-12-11T18:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614523#M11510</link>
      <description>&lt;P&gt;would it be to much trouble for you to tell me in English what each line is doing?&lt;/P&gt;
&lt;P&gt;For instance I look at it and I wonder what the ! is for?&lt;/P&gt;
&lt;P&gt;Next question myNode = $&lt;/P&gt;
&lt;P&gt;Is the selection assigned the tag $ as its variable name? Can I then tell max&amp;nbsp;that T = $&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is two == a typo? if not how would you say that phrase in English?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt; if selection.count == 1 then&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 18:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614523#M11510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T18:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614843#M11511</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;no errors. it it checked the box this time. It did not un-check real-world map size however.&lt;/P&gt;
&lt;P&gt;$Box:Box002 @ [0.000000,0.000000,0.000000]&lt;BR /&gt;$Editable_Poly:Box002 @ [0.000000,0.000000,0.000000]&lt;BR /&gt;OK&lt;BR /&gt;Quadify_Mesh:Quadify Mesh&lt;BR /&gt;OK&lt;BR /&gt;Uvwmap:UVW Map&lt;BR /&gt;false&lt;BR /&gt;4&lt;BR /&gt;OK&lt;BR /&gt;stainless:Standard&lt;BR /&gt;stainless:Standard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="real-world.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/437768i3954C6CB16E4678E/image-size/large?v=v2&amp;amp;px=999" role="button" title="real-world.jpg" alt="real-world.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 20:27:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7614843#M11511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T20:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7618528#M11512</link>
      <description>&lt;P&gt;So the != and == and = can be confusing when you're first getting into scripting / programming.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;! is not, so != is "not equal".&amp;nbsp; Similarly, == is "is equal".&amp;nbsp; Finally a single = is assignment, so x="hi" assigns the string "hi" to variable x.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In MAXScript, $ will hold the currently selected node or nodes.&amp;nbsp; You can check how many things are selected by looking at selection.count.&amp;nbsp; In our example, we only run if selection.count is 1, otherwise we print a message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you pick up little things like this, the learning curve gets less steep.&amp;nbsp; BTW these concepts are not just for MAXScript, most scripting languages have similar syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:42:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7618528#M11512</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-12-12T21:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7619971#M11513</link>
      <description>&lt;P&gt;awesome! this is great info.&lt;/P&gt;
&lt;P&gt;Now let me ask you this. Is there a quick reference sheet somewhere that looks something like this on all of the commands? Or maybe someone may have made one?&lt;/P&gt;
&lt;P&gt;This would be extremely helpful. If&amp;nbsp;I go to the scriptscript help section of max and type "if" i get nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="234"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="106"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;example&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;=&lt;/TD&gt;
&lt;TD&gt;equal&lt;/TD&gt;
&lt;TD&gt;x="on"&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;!&lt;/TD&gt;
&lt;TD&gt;is not&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;!=&lt;/TD&gt;
&lt;TD&gt;in not equal&lt;/TD&gt;
&lt;TD&gt;x!="on"&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;==&lt;/TD&gt;
&lt;TD&gt;is equal&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking on Youtube if found this. Attached is an example of what I am looking for. Should this be a new idea suggestion to AutoDesk or has someone already suggested this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 12:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7619971#M11513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7620799#M11514</link>
      <description>&lt;P&gt;&amp;gt; BTW these concepts are not just for MAXScript, most scripting languages have similar syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not only scripting languages.. luckily C/C++ uses the same syntax.. only basic/vbs is totally different, which is driving me crazy sometimes..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but MXS implemented only half of C++ as it is not supporting &amp;amp;&amp;amp; and ||&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7620799#M11514</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2017-12-13T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7620859#M11515</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/203084"&gt;@istan&lt;/a&gt;. I am starting to discover that. Too bad I don't already know some of the other languages.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:18:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7620859#M11515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7621091#M11516</link>
      <description>&lt;P&gt;For logical expressions MXS uses AND OR NOT&lt;/P&gt;&lt;P&gt;Comparison expressions: ==&amp;nbsp; !=&amp;nbsp; &amp;gt; &amp;nbsp; &amp;lt;&amp;nbsp;&amp;nbsp; &amp;gt;=&amp;nbsp; &amp;lt;=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much less than C language group, but still something &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:26:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7621091#M11516</guid>
      <dc:creator>Siger_</dc:creator>
      <dc:date>2017-12-13T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7623020#M11517</link>
      <description>&lt;P&gt;Well, for a C++ programmer since decades, such language "anomalies" always waste my time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such an enhancement of MXS would be more than simple, but AD has absolutely no focus on this anymore. I am also waiting for a MXS debugger since decades. Even C++ development is smarter by using the "Edit/Continue" feature in a debug session.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7623020#M11517</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2017-12-14T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7624356#M11518</link>
      <description>&lt;P&gt;Hi, we don't really have a "quick reference" for MAXScript, but you might find interesting the "Learning MAXScript" section, which can be read straight through as an introductory tutorial, and will help you get started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_4C14F474_CD23_4001_93DF_0F0F9A6025C7_htm" target="_blank"&gt;http://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_4C14F474_CD23_4001_93DF_0F0F9A6025C7_htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 16:31:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7624356#M11518</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-12-14T16:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7639010#M11519</link>
      <description>&lt;P&gt;Can someone please tell me what the script syntax would be for this? Nothing shows up in MaxScript listener. Also it gives me lower poly count then quadrify mesh will.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QUADRIFY ALL.jpg" style="width: 564px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/441455iCCECD62D6D5F21CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="QUADRIFY ALL.jpg" alt="QUADRIFY ALL.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7639010#M11519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T16:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Maxscript listener assistance</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7639349#M11520</link>
      <description>&lt;P&gt;ok I have everything working except the quadrify all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;macros.run "Modifier Stack" "Convert_to_Poly"&lt;BR /&gt;$.material = meditMaterials[4]&lt;BR /&gt;modPanel.addModToSelection (Uvwmap ()) ui:on&lt;BR /&gt;$.modifiers[#UVW_Map].maptype = 4&lt;BR /&gt;$.modifiers[#UVW_Map].utile = 1&lt;BR /&gt;$.modifiers[#UVW_Map].vtile = 1&lt;BR /&gt;$.modifiers[#UVW_Map].length = 1&lt;BR /&gt;$.modifiers[#UVW_Map].width = 1&lt;BR /&gt;$.modifiers[#UVW_Map].height = 1&lt;BR /&gt;$.modifiers[#UVW_Map].realWorldMapSize = off&lt;BR /&gt;$.modifiers[#UVW_Map].utile = 1&lt;BR /&gt;$.modifiers[#UVW_Map].vtile = 1&lt;BR /&gt;$.modifiers[#UVW_Map].wtile = 1&lt;BR /&gt;$.modifiers[#UVW_Map].length = 23.495&lt;BR /&gt;$.modifiers[#UVW_Map].width = 22.86&lt;BR /&gt;$.modifiers[#UVW_Map].height = 22.86&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a script that i believe may work. The function is called quadify not quadrify but here it is. now i just need help on how plug it in with mine.&lt;/P&gt;
&lt;P&gt;It kind of blows me away to think i need all of this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fn QuadifyAll obj uv:cb_uv.checked mtl:cb_mtl.checked fID:cb_fid.checked oID:cb_oid.checked =&lt;BR /&gt; (&lt;BR /&gt; local idList = #(), facesList = #()&lt;BR /&gt; local tnt = Bomb strength:0 gravity:0 chaos:0 seed:0 spin:0 detonation:0f minFragmentSize:2 \&lt;BR /&gt; maxFragmentSize:2 fallOffEnable:off isHidden:on isSelected:off&lt;BR /&gt; bindSpaceWarp obj tnt ; sliderTime = 5f&lt;BR /&gt; local objTemp = snapShot obj&lt;BR /&gt; delete #(tnt, obj)&lt;BR /&gt; if fID do&lt;BR /&gt; (&lt;BR /&gt; for i in 1 to objTemp.Faces.count do appendIfUnique idList (gfm objTemp i) ; sort idList&lt;BR /&gt; if idList.count &amp;gt; 1 do (for i = 1 to idList.count do append facesList #())&lt;BR /&gt; if facesList.count != 0 do&lt;BR /&gt; (&lt;BR /&gt; for i = 1 to objTemp.Faces.count do&lt;BR /&gt; (&lt;BR /&gt; idx = finditem idList (gfm objTemp i)&lt;BR /&gt; append facesList[idx] i &lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; meshop.autoEdge objTemp #{1..(objTemp.Edges.count)} 24 type:#SetClear&lt;BR /&gt; meshop.weldVertsByThreshold objTemp #{1..(objTemp.Verts.count)} 0.001&lt;BR /&gt; if idList.count != 0 do &lt;BR /&gt; (&lt;BR /&gt; for i = 1 to facesList.count do&lt;BR /&gt; (&lt;BR /&gt; for j = 1 to facesList[i].count do sfm objTemp facesList[i][j] idList[i]&lt;BR /&gt; )&lt;BR /&gt; free facesList ; free idList&lt;BR /&gt; )&lt;BR /&gt; if mtl then objTemp.material = objMat else objTemp.material = undefined&lt;BR /&gt; if oID do objTemp.gbufferchannel = objID&lt;BR /&gt; select objTemp ; objTemp&lt;BR /&gt; )&lt;BR /&gt; on pb_PickObj picked p_obj do&lt;BR /&gt; (&lt;BR /&gt; if p_obj != undefined do&lt;BR /&gt; (&lt;BR /&gt; CenterPivot p_obj ; ResetXForm p_obj&lt;BR /&gt; convertToMesh p_obj ; select p_obj&lt;BR /&gt; pb_PickObj.text = p_obj.name&lt;BR /&gt; objMat = p_obj.material&lt;BR /&gt; objID = p_obj.gbufferchannel&lt;BR /&gt; pb_doit.enabled = on&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; on pb_doit pressed do&lt;BR /&gt; (&lt;BR /&gt; if isValidNode (pickedObj = getNodeByName pb_PickObj.text) do&lt;BR /&gt; (&lt;BR /&gt; if getCommandPanelTaskMode() != #create do max create mode&lt;BR /&gt; undo off with redraw off &lt;BR /&gt; (&lt;BR /&gt; if cb_uv.checked then&lt;BR /&gt; (&lt;BR /&gt; addmodifier pickedObj (Unwrap_UVW ())&lt;BR /&gt; objTemp = QuadifyAll (snapShot pickedObj)&lt;BR /&gt; swap pickedObj.baseobject objTemp.baseobject ; delete objTemp&lt;BR /&gt; select pickedObj&lt;BR /&gt; )&lt;BR /&gt; else&lt;BR /&gt; (&lt;BR /&gt; objTemp = QuadifyAll pickedObj&lt;BR /&gt; objTemp.name = pb_PickObj.text&lt;BR /&gt; )&lt;BR /&gt; if rb_pm.state == 1 then convertToPoly selection[1] else convertToMesh selection[1]&lt;BR /&gt; )&lt;BR /&gt; CenterObject pickedObj&lt;BR /&gt; pb_PickObj.text = "Pick Object"&lt;BR /&gt; pb_doit.enabled = off&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; on quadAllRoll close do (gc())&lt;BR /&gt;)&lt;BR /&gt;createDialog quadAllRoll 150 146 style:#(#style_titlebar, #style_sysmenu, #style_toolwindow)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 18:30:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-listener-assistance/m-p/7639349#M11520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T18:30:47Z</dc:date>
    </item>
  </channel>
</rss>

