PDA

View Full Version : turning my grid on/off quickly


sketchbook
03-18-2006, 10:17 PM
seams that with newer version of c4d, this is an option which can be assigned to a hotkey. i can't seam to get it working however.

possible?

GruvDOne
03-18-2006, 11:11 PM
Just tried it.

Assigning a shortcut doesn't seem to work here either. It shows that the shortcut has been successfully assigned, but pressing the shortcut combo results in nothing... possible bug.

I just keep the display filter icon in various toolbars to access the option quickly.

Erik Heyninck
03-18-2006, 11:17 PM
Same here. Neither the shortcut nor the icon work. As I also have the display filter icon in a bar (left-hand side) I never noticed.

3DKiwi
03-19-2006, 04:13 AM
Add me to the list as well. I've checked with a script as well. Can't get it to work and the command ID # is correct.

3DKiwi

LucentDreams
03-19-2006, 04:28 AM
havne' tried more advanced methos, but you can simply add the filter to the HUD, makes it a little bit more accessible.

JDP
03-19-2006, 07:29 PM
That shortcut is for turning of the grid in the fcurve manager, there doesn't seem to be a shortcut command for the viewport grid. Open up the script manager, click on "new", enter a name i.e Toggle grid, stick in this script and save it:

doc->GetActiveBaseDraw()#BASEDRAW_DISPLAYFILTER_GRID =
!doc->GetActiveBaseDraw()#BASEDRAW_DISPLAYFILTER_GRID;

You will then find this command under what ever name you saved it under in the Command manager and now be able to assign a shortcut key to it.

sketchbook
03-19-2006, 08:08 PM
holy shiznitt!

that is wicked cool!

thanks JDP! :applause:

artdude12
03-19-2006, 09:07 PM
Oooo nice.

Thanks

Erik Heyninck
03-19-2006, 09:32 PM
Thanks. Trying to assign a shortcut for the grid on/off option that is found in cinema's own options gave me a warning message at startup, meaning I had to open the prefs file and manually remove line 159.
Your method looks much better.

Rantin Al
03-19-2006, 11:17 PM
Thanks JDP. :thumbsup:
I'm a script illiterate so this is very helpful.

GruvDOne
03-19-2006, 11:33 PM
That's Awesome!

Now, I gotta know... where does one learn to script things such as this?

Many thanks :applause:

ThirdEye
03-19-2006, 11:37 PM
That's Awesome!

Now, I gotta know... where does one learn to script thing such as this?

Many thanks :applause:

http://www.plugincafe.com/

GruvDOne
03-19-2006, 11:43 PM
http://www.plugincafe.com/

okay, that's a little vague, but thanks... :rolleyes:

sketchbook
03-20-2006, 12:43 AM
i also would be interested in learning how to do this type of scripting. is it like actionscript?

what's new third eye? you used to be quite a presence here and now we hardly ever see you? did you switch apps or something?

JDP
03-20-2006, 01:21 AM
i also would be interested in learning how to do this type of scripting. is it like actionscript?



Now, I gotta know... where does one learn to script things such as this?

The script uses Coffee which is Maxon's scripting language. You need to go to www.plugincafe.com (http://www.plugincafe.com) and download the Coffee sdk which is the documentation for the Coffee language, it also has a couple of tutorials. mdme sadie also has a couple of Coffee tutorials on his site (http://www.peranders.com/). I think there is enough info in the sdk tutorials to get you going, if you get stuck you can always ask questions in the scripting forum.

GruvDOne
03-20-2006, 01:23 AM
The script uses Coffee which is Maxon's scripting language. You need to go to www.plugincafe.com (http://www.plugincafe.com) and download the Coffee sdk which is the documentation for the Coffee language, it also has a couple of tutorials. mdme sadie also has a couple of Coffee tutorials on his site (http://www.peranders.com/). I think there is enough info in the sdk tutorials to get you going, if you get stuck you can always ask questions in the scripting forum.


Right, thanks... I'll have to take a look at it

Cheers!

Tank_3D_Attack
03-20-2006, 01:46 PM
You might want to have a look at this:

http://forums.cgsociety.org/showthread.php?t=330909


Thomas

moka.studio
05-11-2006, 07:40 PM
Nice little script, works with all the display filters.
I need to have a look at the Scripting,
thanks for sharing

CGTalk Moderation
05-11-2006, 07:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.