The set origin was not working from python because the operator was checking if the stroke was valid in the console area. As the stroke only can be valid for GP obects, this check is not needed.
The set origin was not working from python because the operator was checking if the stroke was valid in the console area. As the stroke only can be valid for GP obects, this check is not needed.