Processing to arduino serial question?

I have an encoder running an ISR in Arduino that needs to be reset when the fiduscial markers are changed in PD. I've generally just been having trouble working with the encoder and this was just a workaround for me because I'm not very comfortable coding in arduino with the encoder. I kind of got thrown in the deep end with having to use it for my project.