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

    Create script/plugin for quick layout switch?

    PYTHON Development
    0
    1
    578
    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 02/07/2018 at 06:30, xxxxxxxx wrote:

      Hi Tennet, you should load the file created when you saved your layout.

      Usually, custom layouts are stored in Temp Folder in AppData\Roaming\MAXON\YourVersion\library\layout
      You can retrieve AppData\Roaming\MAXON\YourVersion\library\ with

      c4d.storage.GeGetC4DPath(c4d.C4D_PATH_LIBRARY_USER)
      

      Regarding your second question CallCommand, as the function sound, call a command.
      56000 is the ID of the command to switch the layout and 112 is the actual Layout ID but there is no way for 3rd party developer to know him, the way to go is really to directly load your layout file.

      Hope it's helpful, if you have any questions please let me know
      Cheers
      Maxime

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