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

    Layouts Not Supported in the SDK?

    SDK Help
    0
    3
    283
    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
      Helper
      last edited by

      On 04/04/2014 at 08:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      I'm having trouble handling layouts. Are layouts even supported in the SDK?
      The only thing I've been able to do is load a layout using LoadFile().

      1. How do we get the current active layout with code?

      2. Where is the Startup.l4d layout stored?

      3. Where is the Startup(user).l4d layout stored?

      4. How do we save a layout without using c4d.CallCommand(12673) #Save Layout as...
        I'd like to save a layout without the dialog popping up

      Are the layouts are not supported at all in the SDK?

      -ScottA

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 04/04/2014 at 12:30, xxxxxxxx wrote:

        Afaik, there is no way to load/save layouts other than LoadFile(), therefore

        1. Not possible. Also, when the user docks some dialog into the layout, there is no "active" layout of the ones that are saved by the user
        2. app folder/resource/res/template_c4d.l4d
        3. user folder/prefs/template.l4d
        4. Not possible unless you do some really really really black magic which I am not sure I am allowed to teach you (will check)

        Best,
        -Niklas

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 04/04/2014 at 13:04, xxxxxxxx wrote:

          Thanks Niklas,

          The reason I need it is because I found a workaround for re-sizing the dialog window when dynamically removing gizmos. By switching to another layout then back again.
          If there's a way to get(or save) the current layout. Then we could use it to re-set our windows. Without the developers needing to change the SDK.

          Tell them I'm just trying to save them some work. 😉

          -ScottA

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