RenderData, VideoPost



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

    On 31/07/2011 at 10:59, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R12 
    Platform:   Windows  ;   
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    Hi,
    I'm quite a newbi in C.O.F.F.E.E. programming, so please bare with me.
    Currently I'm trying to modify render settings via C.O.F.F.E.E.
    With the help of forum search, it was a breeze to get a hand on current active RenderData and modify it's basic settings. I also found a way to walk through the VideoPosts (thanks to ScottA). Now, I'd like to add a new VideoPost (like e.g. Global Illumination) to current RenderData. Perhaps I should stress, I don't want to create a VideoPost of my own (which, if I understood another poster correctly, is not possible with C.O.F.F.E.E.).
    With ScottA's code I got this far:
      var rd = doc->GetFirstRenderData();
      var post = rd->GetFirstVideoPost();
      while (post != NULL) {
        if(post->GetType() == VPglobalillumination) {
          println("VP GI");
        }
        post = post->GetNext();
      }

    Searching all the headers within the resource directory, I also tried some of the following, but still I'm not able to get a hold on a new BaseVideoPost instance:
      var vp = new(BaseVideoPost);
    or
      var vp = VpAlloc(VPglobalillumination);

    Anybody any hint, where to search for information on this?

    Thanks in advance,
    Andreas



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

    On 31/07/2011 at 11:23, xxxxxxxx wrote:

    Sorry, it's not possible to allocate video posts in COFFEE.

    cheers,
    Matthias



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

    On 31/07/2011 at 11:29, xxxxxxxx wrote:

    Thanks for the quick reply.
    Obviously I'll have to switch over to C++ then...

    Have a nice vacation,
    Andreas


Log in to reply