Render data



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 15/05/2012 at 23:08, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   12 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi folks,
     
    I'm trying to send some different information from my object plugin to the picture viewer. But I'm just generally confused as to what I'm suppose to be looking for in the SDK to help me with it.
     
    What I want to do is like what the HyperNurbs object does - it has an editor subdivision and a render subdivision. My object doesn't have anything to do with subdivisions but the same principle of having one setting for editor and another for the renderer is what I'm wanting to apply.
     
    Is it RenderData I'm meant to be looking at? Or RENDERRESULT Execute()?  Or do I need to make a "class Render{}" and put settings in their?
     
    I'm just a bit lost as to what I should be looking at on this one! Would someone be so kind as to provide a pointer (pun intended!)?
     
    WP.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/05/2012 at 03:19, xxxxxxxx wrote:

    Well I don't know if this is the 'right' way to do it, but here's what I did when I wrote a render logging plugin.

    First, I wrote a small VideoPostData plugin. All this does (in its Execute() function) is wait until rendering starts. It does this by checking the vp parameter of the VideoPostStruct structure. Then it checks to see if this render is being done in the external renderer (i.e. the picture viewer). If it is, it sends a core message to the main plugin using SpecialEventAdd().

    The main plugin, on receipt of that message does various things that I want done in the full renderer rather than the editor. In your case it would depend on what it was you wanted to do - but you could set a flag for example that affected the output in some way.

    Hope that helps.

    Steve



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/05/2012 at 05:49, xxxxxxxx wrote:

    Thanks Steve,
     
    I've had a bit more of a play with things this evening, but don't seem to be having much success. I'll have to pick it up again tomorrow now. But the VideoPostData has been marked for further testing!
     
    Cheers,
     
    WP.


Log in to reply