Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    InitRenderStruct

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 275 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

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

      On 10/11/2011 at 21:46, xxxxxxxx wrote:

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

      ---------
      Hi,
      I used CustomDataType Gradient in VideoPostData's Execute function.
      Now R13, Gradient->InitRender function requires InitRenderStruct.
      How can I get InitRenderStruct in VideoPostData's Execute function?

      Best regards,

      Takamitsu

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 11/11/2011 at 01:38, xxxxxxxx wrote:

        Hi,

        In this case you have to initialize the InitRenderStruct with the current document and assign the volume data manually:

        if (!vps->doc) return RENDERRESULT_OUTOFMEMORY;
          
        InitRenderStruct irs;
          
        // Initialize the InitRenderStruct with the infos from the document
        irs.Init(vps->doc);
          
        // Assign the volume data of the VideoPostStruct to the InitRenderStruct volume data
        irs.vd = vps->vd;
        

        Tell me if this work for you.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

          On 11/11/2011 at 03:07, xxxxxxxx wrote:

          Thank you for your help!
          It was able to do well by the method.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post