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

    Setting UA vertical size

    Cinema 4D SDK
    r21 python r20
    2
    3
    358
    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.
    • P
      pim
      last edited by

      I have a User Area (UA) in a ScrollGroupBegin inwhich I show image files.
      I set the size of the UA with GetMinSize() based on the nr of images to show.
      Then I change the folder containing the image files.
      The image files are displaced and I call GetMinSize() again to set the new height of the UA.

      However, it seems that when the new UA height is smaller then the current height, the new height is not set.
      Seems logical looking at the new GetMinSize().

      Is there a way to set the height of the UA?

      1cc7ab87-13cf-4833-9820-b1638e45403e-image.png

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

        Hi sorry for the delay @pim,

        Normally GeuserArea.LayoutChanged should be enough since it will ask the redraw of the parent ( In your case the group).
        But without code, it's hard to tell.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • P
          pim
          last edited by

          Ok, something to think about.
          Never considered using GeuserArea.LayoutChanged when changing the UA size.
          I will give it a try.

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