camera callback

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2013
camera callback

Is there a way to make an attribute modifier that houses render resolution dimensions which could be placed on a camera. Then depending on which camera is being used at render time it would adjust the render size accordingly?
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
  02 February 2013
Originally Posted by JokerMartini: Is there a way to make an attribute modifier that houses render resolution dimensions which could be placed on a camera.

yes, there is.
Quote: Then depending on which camera is being used at render time it would adjust the render size accordingly?

that can't work. system calls all "prerender" callbacks (or run prerender scripts) when too late to change any render setting.
 
  02 February 2013
That is a bummer to hear. Because there are several cases where we render multiple shots out of one max file but depending on whether or not we need additional padding on the render the resolution can change and it becomes very annoying to have to select the camera and manage all the different sizes.
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
  02 February 2013
Originally Posted by JokerMartini: That is a bummer to hear. Because there are several cases where we render multiple shots out of one max file but depending on whether or not we need additional padding on the render the resolution can change and it becomes very annoying to have to select the camera and manage all the different sizes.

i think that will be easier to make extra macro UI button to call the render. and ask an user to use this button only.
this macro will check what the current render camera(view) is, set the right resolution, and call the render.
 
  02 February 2013
or make a popup dialog with a list of cameras, where double-clicking (for example) on any camera from the list will call the render with specific for this camera settings.
 
  02 February 2013
That is a very interesting concept worth looking into. That seems like an easy enough idea to implement.
Thank you Denis
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
  02 February 2013
actually it might be cool not just only set render setting but also hide/unhide specific layers. let's say do render from draft or production camera.
 
  02 February 2013
One day I hope to show what I made... Slightly kick-ass Render Management system

Soon.... soon....
__________________
Maxscript Made Easy...
http://davewortley.wordpress.com/
 
  02 February 2013
Originally Posted by DaveWortley: One day I hope to show what I made... Slightly kick-ass Render Management system

Soon.... soon....

hurry up! The Render Management system's ass must be kicked! Folk needs the Hero!

Last edited by denisT : 02 February 2013 at 03:06 AM.
 
  02 February 2013
Originally Posted by denisT: hurry up! The Render Management system's ass must be kicked! Folk needs the Hero!


You would like it very much Denis it even has a MaxScript part so if it doesn't do something you need it to do you can add your own extra bit of MaxScript into the system to make it do it
__________________
Maxscript Made Easy...
http://davewortley.wordpress.com/
 
  02 February 2013
Originally Posted by denisT: system calls all "prerender" callbacks (or run prerender scripts) when too late to change any render setting.

Don't get me started!!!
 
  02 February 2013
what if using some 'prerender' event send 'ESCAPE' message? (i don't know where... it's just an idea). interrupt the current render, and run your own.

fn abortRender event: = 
(
	format ">> %\n" event
)
callbacks.removescripts id:#render_test
callbacks.addscript #preRender "abortRender event:#preRender" id:#render_test 
callbacks.addscript #preRenderEval "abortRender event:#preRenderEval" id:#render_test 


call render (press UI button) with ESC pressed and you will see that 'prerender' callbacks work before render cancel.
 
  02 February 2013
Interesting idea. In the SDK there is Interface::AbortRender() that could be used for this taks.
 
  02 February 2013
Originally Posted by lo: Interesting idea. In the SDK there is Interface::AbortRender() that could be used for this taks.

sounds like the idea can work. vfb will be probably opened any way...
 
  02 February 2013
Originally Posted by denisT: sounds like the idea can work. vfb will be probably opened any way...


I just checked and you're correct on both accounts.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:35 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.