AWS Thinkbox Discussion Forums

Messaging deadline from c++ (in max)

Whats the proper way of messaging the deadline logs from a c++ plugin thats running mid-render?
We see messages being harvested from the renderer, like:

2014-12-09 12:12:03: 0: INFO: Preparing tone operator.
2014-12-09 12:12:03: 0: INFO: Preparing camera sampler…
2014-12-09 12:12:03: 0: INFO: Preparing objects
2014-12-09 12:12:03: 0: INFO: Loading bitmaps…
2014-12-09 12:12:03: 0: INFO: Updating objects
2014-12-09 12:12:03: 0: INFO: Updating instances
2014-12-09 12:12:03: 0: INFO: Preparing lights
2014-12-09 12:12:03: 0: INFO: Preparing lights

So im guessing there is a proper way of doing this

thanks
laszlo

We pass an object that extends RendProgressCallback to the the render function we call. It implements functions like SetTitle and Progress that we use to pass render progress back to Deadline, which is then printed to the render log.

Maybe there is a logging function in the Max SDK that triggers these callbacks?

Cheers,
Ryan

PS: Just a heads up that we’ll be locking these forums next week:
viewtopic.php?f=84&t=12743

Privacy | Site terms | Cookie preferences