Python Code fix Maya Renderview window not found problem

Source: Internet
Author: User

Error:setParent:Object ' Renderview ' not found

This is a very common problem in the work, there are 10% of the probability of encountering, many occur when the other group to open the handover of the scene file, Use the following code when you are not able to resolve it either from the File menu open, or directly into Maya, or directly by double-clicking open ;

It was a Mel, and I rewritten her in Python, and it became Python code ~

ImportMaya.cmds as Mcexists=0getPan= Mc.getpanel (ScriptType ='Renderwindowpanel') forIteminchGetpan:ifitem = ='Renderview':        Print 'Renderview exists.\n'exists= 1ifexists = =0: forIteminchGetpan:PrintItem +'\ n'ifitem = ='RenderWindowPanel1': Mc.deleteui (renderWindowPanel1) Renderpanel= Mc.scriptpanel (type ='Renderwindowpanel', unparent =Renderview) Mc.scriptedpanel (ex= 1, L ="Renderpanel", RP ='Renderpanel')

Copy the code to Maya's script Editor, and press Ctrl+enter to execute;

Some people use the foreground rendering plug-in solution, in fact, the function of the foreground rendering plug-in is to solve the "only one frame" problem :

This code can also be added to Maya's tool shelves in the following steps:

In some companies, they take the special effects as the final part of the CG process (in fact, the special effects are established after modeling, you can begin to synchronize the production), after the model, animation, lighting, rendering open over the project files, handed to the special effects group hands will be filled with a variety of redundant nodes, and many people do not clean the scene habits This makes it easy for files to appear in various problems.

Python Code fix Maya Renderview window not found problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.