Scripting UDKOSC Gestures

From CCRMA Wiki

Jump to: navigation, search

PLAYING A RECORDED SCRIPT:

Use the OSCControl.rb to play a control script:

ruby ./osccontrol.rb 10.0.1.101 7001 ./study/01_pawn_runjump.oc
NOTE: UDKOSC uses port 7001 as it's OSC input port.


PLAYING RECORDED OSC OUTPUT:

Use the OSCPlayer.rb ruby script to play recorded .yml data files:

$ruby ./oscplayer.rb [target-ip] [target-port] < [filename.yml]


In UDKOSC command prompt:

oscstartinput
oscmove


OscSetFollowLockCamera:    Camera moves absolute X,Y,Z from OSC but targets pawn 
OscSetFollowCamera:        Camera moves X,Y,Z relative to pawn from OSC but targets pawn 


In Ruby:

C:\Users\Rob\data\github\udkosc\Scripts>ruby osccontrol.rb localhost 7001 ./data/pawn_circle.oc

pawn_circle.oc
pawn_runjump.oc
camera_setup.oc

Original example code:

http://pastie.org/4212194
Personal tools