Selecting and Deselecting RenderData



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

    On 20/11/2008 at 17:05, xxxxxxxx wrote:

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

    ---------
    When I insert a new RenderData into the document it becomes active (selected), along with the first RenderData.

    I am trying to deselect the new RenderData (or prevent it from becoming selected), but nothing seems to work.

    Here is what I'm trying...

    if(newRD->GetBit(BIT_ACTIVE) == TRUE)
    {
       newRD->ToggleBit(BIT_ACTIVE);
       newRD->DelBit(BIT_ACTIVE);
       newRD->DelBit(BIT_ACTIVERENDERDATA);//Just in case, trying to delete the ACTIVERENDERDATA bit
       EventAdd();
    }

    I have also tried:
    doc->SetSelection(rd, SELECTION_NEW); //rd is the first RenderData

    Any info here would be appreciated.

    Thanks!



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

    On 20/11/2008 at 23:21, xxxxxxxx wrote:

    I found an indirect solution to my problem...

    It wasn't coming from just inserting a RenderData into the document. It was because that RenderData had been copied from another RenderData. Once I specified the COPY_NO_BITS flag, it was deselected when inserted into the document.


Log in to reply