|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I would like to know if I can turn off and on the previously generated Interactors / Actions.
Let's say for example I have an Action which collapses a cube when I press LeftMouse on it. Then (let's say) I have a button and when I press it it turns off the Action (so the cube won't collapse on LeftMouse press). Is it possible to do this? Is it possible to do this through Javascript? thanks |
||
|
|
EnIgMaTiCScOrPioN Member |
Hi Smoke !!
Yes you can switch off an interactor by making it Inactive. Here is an example:
<MTSInteractor Name="myInteractor" Active="1" >
<Target Name="MTSInstance.myCube" />
<MTSHandle Event="MouseLeftClick" Action="myAction" />
</MTSInteractor>
To deactivate the interactor: <MTSAssignProperty Target="MTSInteractor.myInteractor::actv" Value="0" /> To activate the interactor: <MTSAssignProperty Target="MTSInteractor.myInteractor::actv" Value="1" /> Hope this helps. Cheers, Anup |
|||
|
|
Member |
Hey!
Thanks for help! Yes this is exactly I was looking for! Now back to scripting |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

