How to include G4P controls with saveFrame

Thanks for the sample code, I will try to delete the other post but I don’t know how to do it.