<?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: How to code Align Selection (max's and min's) in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7127691#M12581</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1275790"&gt;@Swordslayer&lt;/a&gt;&amp;nbsp;thanks for the hint but I'm having difficulty getting it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can dictate the properties of the cylinder ok i.e. &lt;EM&gt;cylinder.max .min&lt;/EM&gt; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting a runtime error when i do &lt;EM&gt;plane.max&lt;/EM&gt; to match them up i.e.&amp;nbsp;&lt;EM&gt;plane.max =&amp;nbsp;cylinder.max&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also&amp;nbsp;I'm having difficulty getting the rotations to line up: plane to cylinder&amp;nbsp;- i think because the cylinder is surface contained&amp;nbsp;to the Sphere&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jun 2017 11:01:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-04T11:01:51Z</dc:date>
    <item>
      <title>How to code Align Selection (max's and min's)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7126991#M12579</link>
      <description>&lt;P&gt;I have multiple&amp;nbsp;&lt;EM&gt;cylinders&lt;/EM&gt; 'surface constrained' to a &lt;EM&gt;sphere&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have multiple&amp;nbsp;&lt;EM&gt;planes&lt;/EM&gt;&amp;nbsp;I want to align to their relevant &lt;EM&gt;cylinders,&lt;/EM&gt;&amp;nbsp;nominating Minimums and Maximums independently for the XYZ axis - as I would when using Align Selection dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I achieve this with MaxScript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried PlaneObject.transform = CylinderObject.transform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this performs a rotation also, and doesn't give me the ability to set Maximums or Minimums&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 10:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7126991#M12579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-03T10:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to code Align Selection (max's and min's)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7127113#M12580</link>
      <description>&lt;P&gt;Just guessing the exact outcome so I might be a little bit off in my assumptions, I guess you might wanna use object's bounding box, right? Each node (and selection of nodes, for that matter) exposes .min, .max and .center property, so some variant of &lt;FONT face="courier new,courier"&gt;planeObj.pos = cylObj.min&lt;/FONT&gt;&amp;nbsp;might do the trick.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 12:55:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7127113#M12580</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2017-06-03T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to code Align Selection (max's and min's)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7127691#M12581</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1275790"&gt;@Swordslayer&lt;/a&gt;&amp;nbsp;thanks for the hint but I'm having difficulty getting it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can dictate the properties of the cylinder ok i.e. &lt;EM&gt;cylinder.max .min&lt;/EM&gt; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting a runtime error when i do &lt;EM&gt;plane.max&lt;/EM&gt; to match them up i.e.&amp;nbsp;&lt;EM&gt;plane.max =&amp;nbsp;cylinder.max&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also&amp;nbsp;I'm having difficulty getting the rotations to line up: plane to cylinder&amp;nbsp;- i think because the cylinder is surface contained&amp;nbsp;to the Sphere&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 11:01:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7127691#M12581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-04T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to code Align Selection (max's and min's)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7131908#M12582</link>
      <description>&lt;P&gt;The min and max properties of a node are read-only, but you could try setting the center and see if that does what you're looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$Plane001.center = $Cylinder001.max&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jun 2017 13:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7131908#M12582</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-06-06T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to code Align Selection (max's and min's)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7134128#M12583</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;but&amp;nbsp;as the Cylinder is surface constrained to the Sphere - using its&amp;nbsp;XYZ's to set to the Plane doesn't work, since the Cylinder is no longer at that location in the view - it's over on the Sphere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've figured out another approach: get the controller settings of the Cylinder and apply them to the Plane. I&amp;nbsp;did some digging through the forum and found this &lt;A href="https://forums.autodesk.com/t5/3ds-max-programming/how-can-i-setup-owner-target-relationship-for-surface/m-p/5816537/highlight/false#M13741" target="_self"&gt;post&lt;/A&gt;&amp;nbsp;which helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers thanks again for helping, it helped in ruling out options and&amp;nbsp;pushed me to find an alternative!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:41:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-code-align-selection-max-s-and-min-s/m-p/7134128#M12583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T08:41:01Z</dc:date>
    </item>
  </channel>
</rss>

