Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. akramFex
    3. Best
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by akramFex

    • RE: Toggle Only select Visible element.

      I figured it out, it was a simple take but for a newbie like me, it was difficult.

      Code :

      c4d.CallCommand(200000084)
      
      tool = doc.GetActiveToolData()
      tool[c4d.MDATA_SELECTION_VISIBLE] = not tool[c4d.MDATA_SELECTION_VISIBLE]
      
      
      c4d.CallCommand(200000083)
      
      tool = doc.GetActiveToolData()
      tool[c4d.MDATA_SELECTLIVE_VISIBLE] = not tool[c4d.MDATA_SELECTLIVE_VISIBLE]
      

      Thank you, everyone.

      posted in Cinema 4D SDK
      A
      akramFex