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

    Selecting and Deselecting RenderData

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 215 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 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!

      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 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.

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