|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi Admin,
I can use <OnDrag Action="MTSDrag"/> to set a drag action on an object when the cursor move over it. My question is: I need to rotate the object even the cursor is move over it, until the user press down a specific key (e.g. 'A'), he can drag the object while the left button is pressed . Is it possible? Thanks |
||
|
|
Member |
This is what I figured out:
<MTSInteractor Name="idrag" Active="0"> <Target Name="MTSInstance.k1" /> <MTSHandle Action="MTSDrag" Event="MouseDrag" /> </MTSInteractor> <MTSInteractor Name="down"> <MTSHandle Event="KeyDown" Action="MTSAssignProperty" Target="MTSInteractor.idrag::actv" Value="1"/> </MTSInteractor> it works My question is : 1) how to set keyup to set 'actv' back to '0' 2) If there are 3 objects (k1,k2,k3) in the scene, how to modify the codes? |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

