View Full Version : Render camera through viewport
LeeGriggs 11-25-2010, 05:33 PM Hello, I would like to be able to setup a hotkey that renders my current camera that is being displayed in the modelling viewport.
By default maya will render the persp camera even though my focus has been set to my RenderCam.
I guess I have to getFocus the current camera somehow from the modelling viewport and render that. However I have no idea how to.
Many thanks in advance,
Lee
|
|
LeeGriggs
11-28-2010, 12:23 PM
Any takers would be greatly appreciated.
cheers,
Lee
rahulsg2901
11-30-2010, 03:48 AM
I m bit confuse about u r question but chk this code work for u….
renderWindowRenderCamera render renderView camera;
LeeGriggs
11-30-2010, 04:16 PM
I m bit confuse about u r question but chk this code work for u…. Code: renderWindowRenderCamera render renderView camera;
This is almost there. However it assumes there is a camera in my scene called 'camera'.
I would like it to render whatever camera is viewed in my viewport. I somehow need to get the focus of what camera is in the current viewport and render that.
Many thanks,
Lee
rahulsg2901
11-30-2010, 06:13 PM
let me understand first u want to render current active view if I working in top view it render top
for that u don't need any script just go to
window >> Setting/preferences >> categories (Render) >> commands (RenderIntoNewWindow) >> assign any hot key
or you want render specific camera no matter want my current active view then use code
renderWindowRenderCamera render renderView CAMERANAME;
LeeGriggs
11-30-2010, 06:55 PM
Works perfectly thanks Rahul :)
rahulsg2901
12-01-2010, 03:27 AM
Welcome wht was u r solution 1 or 2 option
LeeGriggs
12-01-2010, 08:43 AM
Welcome wht was u r solution 1 or 2 option
This one:
window >> Setting/preferences >> categories (Render) >> commands (RenderIntoNewWindow) >> assign any hot key
I usually right click the render button, but this command works much better thanks!
cheers,
lee
CGTalk Moderation
12-01-2010, 08:43 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.