THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/08/2009 at 05:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hello,
I realized that I can set the 'solo mode' of a layer with:
> \> LayerData data(\*layer->GetLayerData(self, TRUE)); \> data.solo = TRUE; \> layer->SetLayerData(self, data); \>
This works as expected, as long as there is already at least one other layer in solo mode.
_BUT_ if there is no other layer in solo mode it does not work properly and all the objects from all the other layers remain visible (in the Object Manger and when rendering).
Analogously, when I unset the 'solo mode' of a layer and there is no other layer in 'solo mode', all objects from all layers remain hidden.
I tried to fix this with
> \> doc->MultiMessage(MSG_CHANGE, MULTIMSG_BROADCAST, NULL); \>
with no success.
Is there some other message that will help? Or some other way to make this work? Any ideas?
Cheers.