Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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!
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.