mradfo21
02-11-2011, 05:01 PM
hey guys!
So I'm attempting to essentailly move things around with they keyboard ala a videogame.
one thing i've realised though is that lets say you do a loop when you press a hotkey:
while n pressed:
move object .1 in X
else:
return
and while this can work, unfortunately i don't see an update in the viewport, the object will just appear where i translated it (which makes sense - unfortunately)
does anyone have any ideas? is there a way to basically force the viewport to update? the whole idea is to be able to create fluid movement.
whats funny is if i just sit there with the script editor and hit "enter" 30 times it works just as i'd like.. do you think it'd be smart to try and just.. loop the execution of a script from a function? think that would update the viewport ?
So I'm attempting to essentailly move things around with they keyboard ala a videogame.
one thing i've realised though is that lets say you do a loop when you press a hotkey:
while n pressed:
move object .1 in X
else:
return
and while this can work, unfortunately i don't see an update in the viewport, the object will just appear where i translated it (which makes sense - unfortunately)
does anyone have any ideas? is there a way to basically force the viewport to update? the whole idea is to be able to create fluid movement.
whats funny is if i just sit there with the script editor and hit "enter" 30 times it works just as i'd like.. do you think it'd be smart to try and just.. loop the execution of a script from a function? think that would update the viewport ?
