PDA

View Full Version : LUA - TriggerEvent



VaioUserChris
March 4th, 2005, 09:55 AM
What is the syntax for the TriggerEvent command in lua for G4? I tried "TriggerEvent(eventstring,18)" but I get an error
attempt to call global `TriggerEvent' (a nil value)

Has that feature been ported over to G4 yet?

By the way, on the subject of Lua for G4 - I LOVE the new scripting console. Very nice. But it would be great if a few features could be added to that scripting console:
- Adding "Copy/Cut/Paste" to the edit window (It's on the contextual menu)
- Adding keyboard shortcuts for those same commands
- Adding "Save/Save As/Open" to the file menu
- Adding a preference where you can choose to have the Interactive Scripting Console open automatically

Great job guys. Very cool.

Chris

birty
March 4th, 2005, 10:03 AM
its gir.triggerevent, all girder funcitons are now under gir.

Ron
March 4th, 2005, 10:08 AM
The keyboard shortcuts are there, they are simply not working well at the moment because we moved the main window onto a docking window.... :evil:

Save/Save as are on the edit menu,.. we might have to move them. Not sure.

The open is on the file menu.

Girder can open the scripting editor automatically on action-add. Select "automatically open action editor for newly added actions" on the settings dialog.

VaioUserChris
March 4th, 2005, 10:54 AM
Cool. Thanks everyone.

Chris

Ron
March 4th, 2005, 10:56 AM
Have a look at the variable explorer, it will be a pleasant surprise.