{"id":3760,"date":"2022-10-13T10:51:33","date_gmt":"2022-10-13T10:51:33","guid":{"rendered":"https:\/\/cocoalopez.com\/blog\/?p=3760"},"modified":"2022-10-13T10:51:35","modified_gmt":"2022-10-13T10:51:35","slug":"improve-maya-startup-and-shutdown-times","status":"publish","type":"post","link":"https:\/\/cocoalopez.com\/blog\/?p=3760","title":{"rendered":"IMPROVE MAYA STARTUP AND SHUTDOWN TIMES"},"content":{"rendered":"\n<p>Since Maya 2016, it launches with a set of at least 3 acwebbrowser.exe process. Besides all the fuss it creates in the task manager and resource hog it can be, it can also slow down Maya startup and shutdown times <strong>by more than 200%, up to 30 seconds each time!<\/strong> Those process are some chromium engines that connect to the web for different tasks, especially regarding registration. Quite a useless thing to wait for each time you start Maya if you ask me.<br>Messing with the install files is a bad idea as it will probably prevent Maya from launching, it\u2019s much more easy to disable that behaviour by setting these simple environment variable <strong>MAYA_DISABLE_CLIC_IPM<\/strong> and <strong>MAYA_DISABLE_CIP<\/strong> to 1.<\/p>\n\n\n\n<p>If you have no internet connection or if you are in a huge studio with tons of artists using Maya, it will surely make a huge difference!<\/p>\n\n\n\n<p>If you want to improve the shutdown time even more, set the other environment variable <strong>MAYA_DISABLE_CER<\/strong> to 1.<br>Each time Maya quits, <a href=\"https:\/\/forums.autodesk.com\/t5\/maya-forum\/maya-2016-5-slow-start-up\/td-p\/6347777\">it requests a connection to Amazon web services (AWS) for the Autodesk Customer Involvement Program<\/a>, adding 30 seconds of stupidity in some worst cases.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>If you are on Windows, you could also disable the console window that appears for each Maya instance. It\u2019s a good debug tool so keep in mind that you\u2019d may have to reenable it in case you encounter a problem, but I feel it is way more pleasant without that window polluting the workplace. To do that just set the environment variable <strong>MAYA_NO_CONSOLE_WINDOW<\/strong> to 1. There is no need for that on Linux or Mac because they have a real terminal.<\/p>\n\n\n\n<p>R<a href=\"https:\/\/www.regnareb.com\/pro\/2015\/06\/viewport-2-0-and-performances\/\"><\/a>egarding the performance of the VP2 viewport with <strong>MAYA_DISABLE_VP2_WHEN_POSSIBLE<\/strong>.<br>&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<p>The viewport 2.0 has some really nice features like motion blur, ambient occlusion, anti aliasing but it\u2019s still not really usable regarding performances and bugs. I have seen a performance loss around 30-40% even with the basic settings and wireframe mode.<\/p>\n\n\n\n<p>But the worst is that even if you change all your viewport to the Legacy one, the performance loss is still very noticeable :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>only legacy &#8211; <strong>100%<\/strong><\/li><li>activate viewport 2 &#8211; <strong>70%<\/strong><\/li><li>reuse legacy in all viewports &#8211; <strong>87%<\/strong><\/li><\/ul>\n\n\n\n<p>Since Maya 2015 the viewport 2.0 is activated by default, so if the user that worked on the scene previously has not changed its default viewport and if you load the UI settings from the scene, you may have some viewport 2.0 instances in the scene, <strong>even if your main viewport is in legacy mode<\/strong>.<\/p>\n\n\n\n<p>To make sure you never get some VP2 residue make sure that you <strong>deactivate the preferences in UI Elements &gt; Restore saved layouts from file<\/strong>. It won\u2019t use the UI configuration saved by the precedent user working on the scene, and in the mean time speedup the loading and sometimes fix some bugs. Actually I think it\u2019s one of the first thing you should setup in Maya with a custom layout so that your UI is consistent throughout different sessions.<\/p>\n\n\n\n<p>The other way around is to use a script that will query all the different 3d model panels, and set them to the legacy viewport\u2026 And reset and free everything regarding the viewport 2.0.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def setAllPanelsToRenderer(renderer, reset=True):\n    \"\"\"Possible values: base_OpenGL_Renderer, hwRender_OpenGL_Renderer, vp2Renderer\"\"\"\n    modelPanels = cmds.getPanel(type='modelPanel')\n    for panel in modelPanels:\n        cmds.modelEditor(panel, edit=True, rendererName=renderer)\n    if reset or os.environ.get('MAYA_DISABLE_VP2_WHEN_POSSIBLE', False):\n        cmds.ogs(reset=True)\n<\/code><\/pre>\n\n\n\n<p>You may have noticed the <strong>MAYA_DISABLE_VP2_WHEN_POSSIBLE<\/strong> environment variable, it is used when switching viewport engines to tell Maya to free everything related to the viewport 2.0 if it is not used in any viewport anymore. I think it\u2019s always a good thing to set it.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Maya 2016, it launches with a set of at least 3 acwebbrowser.exe process. Besides all the fuss it creates in the task manager and resource hog it can be, it can also slow down Maya startup and shutdown times by more than 200%, up to 30 seconds each time! Those process are some chromium [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3763,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1002],"tags":[],"class_list":["post-3760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/improve-maya-startup-and-shutdown-times.jpg?fit=640%2C394&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9XJix-YE","jetpack-related-posts":[{"id":2033,"url":"https:\/\/cocoalopez.com\/blog\/?p=2033","url_meta":{"origin":3760,"position":0},"title":"Maya License was not obtained error FIX!!!!","author":"cgmodeler","date":"December 27, 2016","format":false,"excerpt":"\u00a0 License was not obtained License method: environment variable MAYA_LICENSE_METHOD='standalone' Product choice: environment variable MAYA_LICENSE='657e1' License file override: environment variable MAYA_ALT_EN is not set Just re-install your license. Assuming your on WinVista\/7\/8...: 1) Hit the start button. Type \"services.msc\" and run it. 2) In Services, right-click \"FLEXnet Licensing\" and click\u2026","rel":"","context":"In &quot;La vida en Tokyo&quot;","block_context":{"text":"La vida en Tokyo","link":"https:\/\/cocoalopez.com\/blog\/?cat=18"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2016\/12\/image_thumb1.png?fit=409%2C270&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2716,"url":"https:\/\/cocoalopez.com\/blog\/?p=2716","url_meta":{"origin":3760,"position":1},"title":"glTF 2.0 Exporter \/ Formato Open Source para export de assets en 3D","author":"cgmodeler","date":"June 4, 2018","format":false,"excerpt":"https:\/\/www.khronos.org\/gltf\/ glTF\u2122 (GL Transmission Format) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. glTF minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets. glTF defines an extensible, common publishing format for 3D\u2026","rel":"","context":"In &quot;Featured&quot;","block_context":{"text":"Featured","link":"https:\/\/cocoalopez.com\/blog\/?cat=1002"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/06\/gltf-2-0-exporter-formato-open-source-para-export-de-assets-en-3d.png?fit=640%2C360&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/06\/gltf-2-0-exporter-formato-open-source-para-export-de-assets-en-3d.png?fit=640%2C360&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/06\/gltf-2-0-exporter-formato-open-source-para-export-de-assets-en-3d.png?fit=640%2C360&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2648,"url":"https:\/\/cocoalopez.com\/blog\/?p=2648","url_meta":{"origin":3760,"position":2},"title":"Resetear la posicion de las ventanas en Maya","author":"cgmodeler","date":"April 14, 2018","format":false,"excerpt":"Si una ventana desaparece de la pantalla en maya, hacer lo siguiente para restaurar las ventanas al \u00e1rea de trabajo. Cerrar maya e ir a: C:\\Users\\Documents\\maya\\2013\\prefs borrar el archivo: windowPrefs.mel Reiniciar maya :) \u00a0","rel":"","context":"In &quot;Tips y Tutoriales&quot;","block_context":{"text":"Tips y Tutoriales","link":"https:\/\/cocoalopez.com\/blog\/?cat=31"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/04\/resetear-la-posicion-de-las-ventanas-en-maya.jpg?fit=623%2C444&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/04\/resetear-la-posicion-de-las-ventanas-en-maya.jpg?fit=623%2C444&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2018\/04\/resetear-la-posicion-de-las-ventanas-en-maya.jpg?fit=623%2C444&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3311,"url":"https:\/\/cocoalopez.com\/blog\/?p=3311","url_meta":{"origin":3760,"position":3},"title":"Maya Playblast Tool (MayaCapture) With GUI","author":"cgmodeler","date":"October 11, 2021","format":false,"excerpt":"Found this nice tool for playblast control in maya, its a GUI for another playblast python script. Playblast Script (MayaCapture): https:\/\/github.com\/abstractfactory\/maya-capture Playblast GUI: https:\/\/github.com\/BigRoy\/maya-capture-gui Make sure to review all the available commands and place both scripts on the same folder.","rel":"","context":"In &quot;Featured&quot;","block_context":{"text":"Featured","link":"https:\/\/cocoalopez.com\/blog\/?cat=1002"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2021\/10\/imagen-7.png?fit=379%2C583&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3764,"url":"https:\/\/cocoalopez.com\/blog\/?p=3764","url_meta":{"origin":3760,"position":4},"title":"Headless Maya Playblast","author":"cgmodeler","date":"October 13, 2022","format":false,"excerpt":"Contrary to popular beliefs, it\u2019s totally possible to do your playblasts in batch mode. It can be very helpful in a lot of workflow: - create a missing playblast without the hassle of opening Maya UI - move all playblasts calculation to a remote computer to be able to continue\u2026","rel":"","context":"In &quot;Featured&quot;","block_context":{"text":"Featured","link":"https:\/\/cocoalopez.com\/blog\/?cat=1002"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/headless-maya-playblast.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/headless-maya-playblast.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/headless-maya-playblast.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/headless-maya-playblast.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2022\/10\/headless-maya-playblast.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3315,"url":"https:\/\/cocoalopez.com\/blog\/?p=3315","url_meta":{"origin":3760,"position":5},"title":"Maya Screenshot Tool","author":"cgmodeler","date":"October 12, 2021","format":false,"excerpt":"Free script to help you with versioning in Autodesk Maya. Takes a screenshot of the active viewport using the playblast feature and saves it next to the scene file. https:\/\/gfxhacks.com\/versioning-with-previews-in-maya\/","rel":"","context":"In &quot;Featured&quot;","block_context":{"text":"Featured","link":"https:\/\/cocoalopez.com\/blog\/?cat=1002"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2021\/10\/imagen-8.png?fit=691%2C310&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2021\/10\/imagen-8.png?fit=691%2C310&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/cocoalopez.com\/blog\/wp-content\/uploads\/2021\/10\/imagen-8.png?fit=691%2C310&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3760"}],"version-history":[{"count":1,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3760\/revisions"}],"predecessor-version":[{"id":3762,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3760\/revisions\/3762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3763"}],"wp:attachment":[{"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cocoalopez.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}