Jump to content
Sign in to follow this  
CGIHercules

Grid ON/OFF toggle shortcut ?

Recommended Posts

I made some key commands that combined with given C4D shortcuts make my workflow easy. Now one thing I often use is Filter-Grid (in a 3d viewport). I want to assign a shortcut to that but I cant seem to find way to do it. It doesnt show up in Shortcut Commands pallete. Do you guys think there is a way to make a shortcut for 3d viewport grid on/off toggle ?

 

Thank you

Share this post


Link to post

Yes there is; I made one, and have it assigned to the G key. As a bonus, mine also turns the horizon off. Unfortunately I am away from my C4D machine, so cant share the script for that til Monday.

 

CBR

Share this post


Link to post

CEREBRA...hahaha oh man, that's EXACTLY what I was gonna assign G for :) I searched a lot (I wasn't lazy just coming straight here :) and couldn't find the way to do it. I am happy to hear it can be done. Please update me on the way it is done once you can. Big thanks.

Share this post


Link to post

I think I posted the script here when I first made it, but damned if I can find it now !

When you do assign G to that, remember you need to re-assign what G is mapped to by default (Frame forward) !

 

CBR

 

Share this post


Link to post

Oh I see....So basically I was kinda right. You can't change that by changing key command. You had to write an original script for that to be possible. I never loaded script in C4D.

Share this post


Link to post

It's your lucky day - look what I found ;) It goes in your preferences folder/library/scripts. Reload Cinema and do shift+C to assign it. It's called Toggle grid.

 

CBR

Toggle Grid.CSC

Share this post


Link to post
7 hours ago, Cerbera said:

It's your lucky day - look what I found ;) It goes in your preferences folder/library/scripts. Reload Cinema and do shift+C to assign it. It's called Toggle grid.

 

CBR

Toggle Grid.CSC

Oh man thats just what I needed. You're awesome :) Thank you so much. Sooooo conveninet cuz i literally find myself toggling it ON and OFF all the time while I work and for such a super customizeable piece of software I am really surprised they didn't include option to add this one. Well...MAXON should definitelly pay attention to your script :)

Share this post


Link to post

Slightly off topic. Even with no scripting knowledge or limited knowledge you can create your own scripts for basic commands. Here's the process to create a script for toggling the grid on and off. (Should work in R20 but I haven't got it to test).

 

1. Fire up C4D and from the "Script" menu load the "Script Log"

2. From the Viewport "DisplaY" menu enable or disable the grid

3. Look at the Script Log. You should see an entry "c4d.CallCommand(70000, 917) # Display Filter" Copy this text

4. Close the Script Log and the Filter menu

5. From the Script menu load the "Script Manager"

6. Replace the Hello world line with c4d.CallCommand(70000, 917) # Display Filter

7. Save your script from the file menu of the Script Manager. By default it saves to the script folder

8. Click on "Shortcut" on the Script Manager

9. This brings up the "Customize Commands" Dialog. Scroll until to see your new script. If you named your script "Grid.py" then you could do a search for "Grid"

10. Assign a hotkey to script in the normal manner

 

Done. This works for a lot of things in C4D.

Share this post


Link to post
On 9/14/2018 at 2:15 PM, astrofalcon said:

 

Hey everyone. I made a py script that does this same thing but this is compatible with R20.

 

Have fun!

 

- Shawn

 

 

Toggle Grid SA Studios.zip

I'm in R20. This works great. Thanks!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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  

×
×
  • Create New...