Jump to content

Archived

This topic is now archived and is closed to further replies.

jamesinsincity

Grid Be Gone!

Recommended Posts


I recall 3DAttack had this to download. But in 10.5 all you need to do is press Shift + V and on the HUD tab add the grid HUD element to the viewport. Clicking on this toggles the grid on and off. You can change the behaviour by right clicking on in the attributes and changing the grid HUD element to local. This then allows you to add a grid HUD element to each window and have each grid in each view either on or off.

3DKiwi

Share this post


Link to post
Share on other sites

The 3DAttack version was actually part of a toggler plug-in.

Here's a basic script version which popped up somewhere, possibly CGTalk(?).

doc->GetActiveBaseDraw()#BASEDRAW_DISPLAYFILTER_GRID =
!doc->GetActiveBaseDraw()#BASEDRAW_DISPLAYFILTER_GRID;[/codebox]

Cheers, Alan.


Repeat after me: Path spline in TOP, profile in FRONT.

Share this post


Link to post
Share on other sites

You can assign any keystroke or combo with any modifier keys to create a shortcut.

Just open the Command Manager, use the Name Filter to quickly jump to 'Toggle Grid'.

In the sample below you can see that I have two Grid controls. One is the 3DA plugin, the other is the script.

Select the script version, type the short-cut you want and click 'Assign'. That's it. :signthankspin:

The Command Manager will alert you to any keystrokes which are already assigned.

You can either re-assign or create another keystroke. Better to go for a unique new one and retain the defaults.

Another option is to use the Script Manager to load an Icon and dock it to a convenient place in your tool menu.

You can let the Script Manager create one or you can knit your own and simply load it, again in the Script Manager.

Cheers, Alan.


Repeat after me: Path spline in TOP, profile in FRONT.

Share this post


Link to post
Share on other sites
  • Topic Author
  • Hi Al,

    Thanks for the work you put in explaining this to me - I'm pretty clear on how to get the command manager to assign a key and icon - what I'm not clear on is where to put that script - do I copy those lines of code onto a blank wordpad document and place it in "scripts" in the C4D Program Files?

    Jim

    Share this post


    Link to post
    Share on other sites

    No problem, Jim.

    You just paste into the panel in the Script Editor.

    First click "New" and enter a relevant name. I used Test in the example, you would use Grid.

    Copy and paste the script code into the main panel. Leave "Enable=True" as it is.

    If you have a custom icon, click "Load Icon". It will appear where the small white coffee icon is, beside the script drop-down button.

    Click "Execute" a couple of times to test the script. The grid in your viewport will toggle as you test.

    Finally, click "Save All". The script will be saved automatically to your Scripts folder and will be available via the drop-down button in the Script Manager or via the Plugins menu > User Scripts >.....

    Cheers, Alan.


    Repeat after me: Path spline in TOP, profile in FRONT.

    Share this post


    Link to post
    Share on other sites
    Guest
    This topic is now closed to further replies.

    • Recently Browsing   0 members

      No registered users viewing this page.

    YOUTUBE CHANNEL:

    ABOUT US:

    C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite 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, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
    ×
    ×
    • Create New...