Jump to content

  • “Great art picks up where nature ends.”  Marc Chagall 

Sign in to follow this  
destta

UI Layouts Hotkey/Button

Recommended Posts

Hi! 

 

Is there a way to bind hotkey to layout preset (modeling/sculpting etc...)? Or make buttons on panel for different layouts? Thanks. 

 

P.S. Yes, there is 'Switch Layout' command/button but it only shows list of all layouts.

 

 

Share this post


Link to post
Share on other sites

I wanted this for myself recently and found a script.  

 

import c4d, os
from c4d import gui, documents
#Welcome to the world of Python


def main():
    c4d.documents.LoadFile(c4d.storage.GeGetC4DPath(c4d.C4D_PATH_LIBRARY_USER)+os.sep+"layout"+os.sep+"masrs1.l4d")

if __name__=='__main__':
    main()

 

Just replace masrs1.l4d with your layout name. 

 

Mike

Share this post


Link to post
Share on other sites
  • Topic Author
  • Thx alot!

     

    I've made setup for scripts / palettes if anyone is interested. Read 'install.txt' for instructions.

    layouts selector.zip

     

     

    layouts.png

    Share this post


    Link to post
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Sign in to follow this  

    • BLOGS

    About Us

    C4D Cafe is the largest Cinema 4D community. We provide facilities for discussion, showcasing and learning our favourite software.
    Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, watch tutorials directly from our video gallery,  get your own private messenger, post and upload images, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, C4D Cafe is the right place to be for learning 3D.  :cowboypistol:

    ×
    ×
    • Create New...