Difference between revisions of "Scripting UDKOSC Gestures"
From CCRMA Wiki
m |
m |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | 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: | In UDKOSC command prompt: | ||
Line 5: | Line 22: | ||
− | + | 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 | ||
Line 14: | Line 32: | ||
pawn_circle.oc | pawn_circle.oc | ||
pawn_runjump.oc | pawn_runjump.oc | ||
+ | camera_setup.oc | ||
+ | |||
+ | Original example code: | ||
+ | |||
+ | http://pastie.org/4212194 |
Latest revision as of 14:51, 5 November 2013
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