Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I check scene is rendering?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
icapathos
527 Views, 1 Reply

Can I check scene is rendering?

As I write in title, I hope to determine a scene is rendering or not.

I run some kind of monitoring tool within maya,

during running that it has to avoid the situation like file io.

I can check the condition with MFile::isReadingFile and so on.

But, in case of rendering I can not find the solution.

Is there any way to see the scene is rendering regardless of renderer?

1 REPLY 1
Message 2 of 2
cheng_xi_li
in reply to: icapathos

Hi,

 

You can use preRenderMel/postRenderMel in renderGlobals.

 

e.g.

 

setAttr -type "string" defaultRenderGlobals.preRenderMel "print(\"prerender\");";
setAttr -type "string" defaultRenderGlobals.postRenderMel "print(\"postrender\");";

 

Yours,

Li

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report