Setting the Render settings



  • 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



  • 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



  • 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



  • 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



  • 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?



  • 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



  • 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?


Log in to reply