0
$\begingroup$

Just like we are able to translate most elements in Blender, it would be really nice to be able to do it there. Is it possible?

$\endgroup$
  • 3
    $\begingroup$ Well, in the form you've asked it, the answer is "yes," but that's probably not what you're looking for. Incidentally, the answer to any question that starts with "is it possible to write code that would..." is almost ALWAYS "yes." It is possible. A better question is "would it be worth it." The BEST question would be "What Python command sets a new hotkey in Blender," or "how do I get my Blender script to listen for a keypress without it just running all the time?" Try to be specific. $\endgroup$ – Matt Jul 29 '15 at 16:21
  • 1
    $\begingroup$ Actually, "yes" would be enough, thank you! Sometimes I think something is possible, then look for a way to do it, and after a lot of time invested, turns out it isn't possible. Also, every little usability improvement is always worth it if you repeat the same task every day, even if I have to expend a ridiculous amount of time figuring out how to implement it. P.S.: I'm sorry if the question bothered you! $\endgroup$ – Zafio Jul 29 '15 at 16:52
  • $\begingroup$ Are you asking if you can use python to make dope sheet channels drag+drop with the G key to change their position in the list? $\endgroup$ – Todd McIntosh Jul 29 '15 at 19:14
  • $\begingroup$ You can move the position of channels within each Action group up and down using the Page Up/Down keys, not sure if you already knew that. $\endgroup$ – Todd McIntosh Jul 29 '15 at 19:14
  • $\begingroup$ I know about the keys, I want indeed to drag+drop with G key. $\endgroup$ – Zafio Jul 29 '15 at 19:23
2
$\begingroup$

Yes, the default keys are ⇞ Page up and ⇟ Page down, the setting can be found in keyboard input under Animation Channels.

enter image description here

The python path is bpy.context.window_manager.keyconfigs.active.keymaps['Animation Channels'].keymap_items['anim.channels_move'] with the property type being the key used, properties.direction is the direction the selected item is moved. You will want to loop through the keymap_items as you will find four keymap_items['anim.channels_move'] entries, up one line, down one line, to the top and to the bottom.

You should look at adding keymaps to an addon to make the changes properly.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.