Interactive plugin / modifier

Interactive plugin / modifier

joe
Participant Participant
694 Views
3 Replies
Message 1 of 4

Interactive plugin / modifier

joe
Participant
Participant

Is it possible during script execution to take user input ? 

Eg - if I were to run a loop that animated the Y axis of a planes vertices. 

While the loop is running , the script would get the users selection and apply a falloff from that location. 

When I run my script, the loop happens until its finished, and therefore there is no opportunity to take user input. 

Perhaps this can only be done in a plugin / node , or perhaps i'm missing something

 

Thanks

0 Likes
695 Views
3 Replies
Replies (3)
Message 2 of 4

trs_andre
Collaborator
Collaborator

From what I know, you cannot interact with Maya when it is running a script, unless it asks you to do it (temporarily interrupting the script for user input). It is specially troublesome when it makes an endless loop, which you can't kill unless you kill Maya process (there is actually a workaround for this one, but it requires preparation before it happens...)

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 3 of 4

joe
Participant
Participant

Thanks for your answer. That's good to know and as I suspected. 

In this case, will making it a plug-in function as i'm expecting ? ( providing it's done right )

0 Likes
Message 4 of 4

trs_andre
Collaborator
Collaborator

Hum... Not really sure, I think plug-ins would work the same way...

If you can get the loop to be "paused" for the user to input/select something, it should be possible.

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes