<?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 How to set viewport height/width *in pixels* in Maxscript? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639396#M13966</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to Maxscript.&amp;nbsp; I'm using 3ds Max 2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to set the x and y dimensions of the viewport &lt;U&gt;&lt;STRONG&gt;in pixels&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp; (We don't necessarily need to set the z dimension.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this in Maxscript? If so, how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
    <pubDate>Sat, 22 Oct 2016 20:27:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-22T20:27:28Z</dc:date>
    <item>
      <title>How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639396#M13966</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to Maxscript.&amp;nbsp; I'm using 3ds Max 2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to set the x and y dimensions of the viewport &lt;U&gt;&lt;STRONG&gt;in pixels&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp; (We don't necessarily need to set the z dimension.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this in Maxscript? If so, how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 20:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639396#M13966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-22T20:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639861#M13967</link>
      <description>&lt;P&gt;what is your expactation? shall 3dsmax resize the window to your settings? what shall 3dsmax do with all the other gui-windows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 13:36:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639861#M13967</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2016-10-23T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639874#M13968</link>
      <description>&lt;P&gt;Thank you very much for asking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ultimate goal really is to render an object to specific pixel location in a bitmap.&amp;nbsp;&amp;nbsp; To give a simple example, I'd like to render a [20,20,20] cube at pixel location [300,200] of a 800x600 pixel bitmap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I previously posted a couple of messages here about this, but got no response.&amp;nbsp; So, in trying to break down this problem in simpler problems, I figured that one of the steps involved is to set the viewport dimensions in pixels.&amp;nbsp; Hence my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this clarifies it.&amp;nbsp; Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 14:17:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639874#M13968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-23T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639951#M13969</link>
      <description>Ok. You don't talk about a viewport but a render window - which is a big difference. Then you should rather think about using a camera (orthographic?) with the parameters you need for rendering.</description>
      <pubDate>Sun, 23 Oct 2016 15:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6639951#M13969</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2016-10-23T15:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6640264#M13970</link>
      <description>&lt;P&gt;Thank you very much for the info.&amp;nbsp; I tried unsuccessfully to look up how (or even whether) this can be done in Maxscript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you happen to know how to set the relevant parameters of the camera (with orthographic projection), please?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 21:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6640264#M13970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-23T21:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set viewport height/width *in pixels* in Maxscript?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6646148#M13971</link>
      <description>&lt;P&gt;See e.g.: &lt;A href="https://forums.autodesk.com/t5/3ds-max-programming/orthographic-projection/td-p/6212488" target="_self"&gt;http://forums.autodesk.com/t5/3ds-max-programming/orthographic-projection/td-p/6212488&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 08:22:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-set-viewport-height-width-in-pixels-in-maxscript/m-p/6646148#M13971</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2016-10-26T08:22:40Z</dc:date>
    </item>
  </channel>
</rss>

