Query about G-code and drone trajectory

I have a question about planning a trajectory…i am exploring the posibility of using a drone as a mini 3d printer, so i think i need to translate the 3d model ( G-code path?), into the drone path or trajectory (but only the vertex)… So the question is; Do you think it is posible? and how do you thing is the best or easiest way to acomplish that… Im a little new on programming so i want to know and learn the best method, or know what languaje would better to start learning and do that…
thank you!