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

    changing layer solo mode

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

      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 26/08/2009 at 06:15, xxxxxxxx wrote:

        Please check this thread:

        Setting Layer Browser

        cheers,
        Matthias

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