Message 1 of 2
Run different command depending on whether object or comp is selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
Conditionals and expressions are a bit ahead of me in understanding MEL and Python.
I have an idea which would help me reduce number of shortcuts, if I would just put more than a single script under a single button/hotkey by combining them and run depending on mode I am in, like component/object mode.
For example. Moving pivot to the selected component pivot position and matching pivot to the last selected object, could be under the same hotkey.
These in my case are two completely different scripts, but with conditional whether object or component is selected, they could be combined, no?
Could someone point me at a good code example which implemented such thing?
Many thanks,
DS