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

    Getting GeDialog Group Width & Height?

    Cinema 4D SDK
    python
    2
    3
    331
    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.
    • ?
      A Former User
      last edited by

      Hello,
      I was wondering if there's a better way for finding the width & height of a GeDialog group. I am currently adding a GeUserArea with BFH_SCALEFIT | BFV_SCALEFIT flags to the group and using its Sized method to determine the parent group's width & height.

      Is there a better way?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi @blastframe, thanks for reaching out us.

        With regard to your question, you can make good use of it by calling c4d.gui.GeDialog.GetItemDim().

        Feel free to jump back if it doesn't work as expected.
        Cheers,R

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @r_gigante
          last edited by

          @r_gigante Thank you, Riccardo! I don't know how I missed that in the documentation, but it is what I needed. 😄

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