myara wrote:
McNistor wrote:
Hey, I'm totally off-topic here, but I don't feel like opening a new thread just for this:
is there any way to bind to a hotkey the option switch Extrude/Duplicate in the drop-down "duplicated items > polygons" from Duplicate Options preferences?
I find myself switching quite often while modeling and I really hate buttons so dragging the command script line onto a toolbar to create a button is my last option, but I'll do it if there's no other way.
Thanks!
If you know that you are TOTALLY OFFTOPIC then why do you post HERE?
Anyway you'll need to write a script, make it a command to assign it a key.
I though I could also use that so I wrote it.
Code:
// JScript
var prefs = Application.Preferences;
CurrentValue = (GetUserPref("duplicate.polygons") );
prefs.SetPreferenceValue( "duplicate.polygons", 1 - CurrentValue );
var modelog = CurrentValue == 1 ? "Duplicate" : "Extrude"
logmessage (modelog)
It will toggle between Duplicate and Extrude every time you run it and log the current mode.
I just said, so that I won't open a new thread for what I believe to be a "not so important" thing.
Now that you're asked me even though I mentioned my reason and replying to your question, goes deeper into off-topic. Kudos for that!
Gee, people need to relax... I thought I was tensed up...
Thanks for the code.
This thread
http://www.xsibase.com/forum/index.php?board=9;action=display;threadid=44096 helped me assign a key to the button for whoever is interested in this and is as "knowledgeable" as me. Mapped it to the useless hotkey 'R'
Edit: now that I think about this and look at the topic title, I'm not so sure anymore that I'm TOTALLY off-topic...