Skip to content

Instantly share code, notes, and snippets.

@sudk1896
Created November 29, 2016 13:09
Show Gist options
  • Save sudk1896/de64f081df45164a7728bfd747120712 to your computer and use it in GitHub Desktop.
Save sudk1896/de64f081df45164a7728bfd747120712 to your computer and use it in GitHub Desktop.
from unrealcv import client
client.connect()
import sys
num = len(sys.argv)
arg_list = (sys.argv)
args = list()
for i in range(1, len(arg_list)):
x = int(arg_list[i])
args.append(x)
command = client.request('vset /camera/0/location {0} {1} {2}'.format(
args[0], args[1], args[2]))
save = client.request('vget /camera/0/lit')
cmd = client.request('vset /camera/0/rotation {0} {1} {2}'.format(
args[3], args[4], args[5]))
save = client.request('vget /camera/0/lit')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment