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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to Check If you are in a Specific Tab?

    Cinema 4D SDK
    r21 python
    2
    3
    321
    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.
    • B
      bentraje
      last edited by bentraje

      Hi,

      Is there a way to check if you are in a specific tab?
      I have a contextual menu that triggers through RMB.
      It works. The problem is it works on all tabs. It should work on only a specific tab.

      You can see the problem here:
      https://www.dropbox.com/s/nhksy19e74zfxfk/c4d215_check_if_you_are_in_a_specific_tab.mp4?dl=0

      Is there a way around this?
      Thank you.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        A Tab is stored as an Int.
        So you can retrieve the value by GeDialog::GetInt32.

        You have a complete example in What message or Id do I get when the user select a tab in my dialog?

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • B
          bentraje
          last edited by

          @m_adam

          Thanks. Works as expected.

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