Try replacing if [Current Frame == Last timeline frame]
with if [Current Frame < Last Frame]
.
That way, whenever it rewinds, regardless of the last frame, you’ll know.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5ff06f46-36a8-47be-b832-5f0f50b36089n%40googlegroups.com.