tag:blogger.com,1999:blog-2331564686918505152.post4494515772902882777..comments2018-04-26T17:48:57.604+02:00Comments on procanic: Custom Image Plane and Correct Aspect Ratiorobert schröder http://www.blogger.com/profile/13687304411206511067noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2331564686918505152.post-55493644313528169572012-07-04T18:41:44.817+02:002012-07-04T18:41:44.817+02:00so assuming that the procedure is sourced, the MEL...so assuming that the procedure is sourced, the MEL for the shelf button could look something like this:<br /><br />// create camera<br />$myCam = `camera`;<br />// skip the next two lines if you just want a single node cam<br />objectMoveCommand; <br />cameraMakeNode 2 "";<br />// correct aspect ratio for new camera<br />RS_correctAspectRatio({$myCam[0]});robert schröder https://www.blogger.com/profile/13687304411206511067noreply@blogger.comtag:blogger.com,1999:blog-2331564686918505152.post-2125165630276585782012-07-04T13:59:08.147+02:002012-07-04T13:59:08.147+02:00the aperture of a newly created camera is determin...the aperture of a newly created camera is determined through an optionVar which is defined in the userPrefs.mel (..\Documents\maya\2012-x64\prefs\..)<br />from the top of my head i don't know a way to set this value at creation. but you could create a shelf button, containing the create camera command as well as a call to the RS_correctAspectRatio procedure from my script.robert schröder https://www.blogger.com/profile/13687304411206511067noreply@blogger.comtag:blogger.com,1999:blog-2331564686918505152.post-84455424209210707862012-07-04T11:18:57.594+02:002012-07-04T11:18:57.594+02:00great script.
do you know a way to tell maya to ad...great script.<br />do you know a way to tell maya to adjust the device aspect ratio automatic when creating a new camera?shaihttps://www.blogger.com/profile/10384196811120522915noreply@blogger.com