Scripting as a shortcut?

Hey everyone,

I just wanted to know how I might go about making an object a shortcut on a single-click when I already have it programmed in the properties dialog as an object controller (on mouse-over, though, nothing is currently assigned to it when it's clicked). Do I have to create script for this?
2,107 views 2 replies
Reply #1 Top
If I understand correctly, I think I have one solution that doesn't require scripting.

Create another new object, make it a shortcut, and set all its stuff. Give it a name, like "MyShortcut". You can set Visible to No on the relations tab to hide this shortcut, if you don't want it visible.

Now, on the object you have as a controller, I assume you mean that you have already chosen "Start With: Mouse over" as your option on the Relations tab. We can still add some basic behavior to other mouse interactions, though.

On the States tab of your controller object, add a state and choose "Mouse up"

Now, in the Messages pane below(still on the States tab), click Add. Choose Object ID and select your shortcut.
As message, select "Command executed"

OK your way out of the panels, and try it out!