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

    Setting the Render settings

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 613 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 22/11/2009 at 07:53, xxxxxxxx wrote:

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

      ---------
      Hello,

      I would like the OBJECT GLOW effect to be enabled in the render settings,

      how would I do that?

      This is what I have but C4D crashes every time I insert my plugin object.

        
           BaseObject* op = static_cast<BaseTag*>(node)->GetObject();   
           BaseDocument* doc = op->GetDocument();   
        
           RenderData *rdata = doc->GetActiveRenderData();   
           BaseContainer *data = rdata->GetDataInstance();   
           data->SetBool(VPPRIORITY_OBJECTGLOW, TRUE); // Set Object Glow   
      

      any thoughts?

      ~Shawn

      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 22/11/2009 at 10:37, xxxxxxxx wrote:

        Hello,
        yuo have to make a recursion in RenderData Videopost
             
        RenderData * rd = doc->GetActiveRenderData();
        PluginVideoPost * vp = rd->GetFirstVideoPost();
        and recurse in videpost with vp->GetNext();

        and set videopost container

        all the best Franz

        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 22/11/2009 at 17:25, xxxxxxxx wrote:

          So how do I know when I have reached the OBJECT GLOW?

          ~Shawn

          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 23/11/2009 at 00:45, xxxxxxxx wrote:

            videopost are baselist2d you can ask type:

            RenderData * rd = doc->GetActiveRenderData();
            PluginVideoPost * vp = rd->GetFirstVideoPost();
            LONG vptype;
            for ( vp; vp; vp->GetNext())
            {
            if(vp->GetType == ID_ObjectGlow) break;// i don't know this id you have to find it
            }
            now vp is your

            Franz

            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 23/11/2009 at 02:51, xxxxxxxx wrote:

              Thanks alot for your replies. This is what I have now.

                
                   BaseObject* op = static_cast<BaseTag*>(node)->GetObject();   
                   BaseDocument* doc = op->GetDocument();   
                
                   RenderData * rd = doc->GetActiveRenderData();   
                   PluginVideoPost * vp = rd->GetFirstVideoPost();   
                      
                
                   //LONG vptype;   
                   for ( vp; vp; vp->GetNext())   
                   {   
                        if(vp->GetType() == VPPRIORITY_OBJECTGLOW)   
                        {   
                             vp->SetParameter(VPPRIORITY_OBJECTGLOW, TRUE,0);   
                        }   
                
                   }   
                
              

              And C4D Still crashes whenever I try to load my plugin.

              Any thoughts?

              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 23/11/2009 at 05:49, xxxxxxxx wrote:

                Sorry but VPPRIORITY_OBJECTGLOW is not a videopost parameter.
                VPPRIORITY_OBJECTGLOW is not plugin type is a parameter for register plugin. what exactly you need to do 😉
                Franz

                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 23/11/2009 at 09:12, xxxxxxxx wrote:

                  I would like to enable the Object Glow option in the render settings. Where can I find which parameter to change?

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