# Change the output location of beginRecord?

**URL:** <https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643>\
**Category:** Coding Questions\
**Created:** [September 18, 2018, 2:56pm UTC](https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643 "2018-09-18T14:56:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 18, 2018, 3:03pm UTC](https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643/2 "2018-09-18T15:03:30Z")

</div>

> [@Using custom \`main(String\[\] args)\` breaks file reading functions in Windows (e.g. \`loadShader()\`, \`loadImage()\`)](https://discourse.processing.org/t/using-custom-main-string-args-breaks-file-reading-functions-in-windows-e-g-loadshader-loadimage/2572/14):
>
> By default, field PApplet::sketchPath would point to the “Current Working Directory” (CWD): Unless a special “–sketch-path=” argument is passed to PApplet.runSketch(): [Forum.Processing.org/two/discussion/16457/size-method-for-intial-window-not-working-when-more-windows-are-are-added#Item\_1](http://Forum.Processing.org/two/discussion/16457/size-method-for-intial-window-not-working-when-more-windows-are-are-added#Item_1) I believe the PDE (Processing’s IDE) creates its own customized main(String[] args) which passes all of those custom args to the compiled sketch. And when we override it by making our own main(String[…

> [@Plot grafica in Pgraphics?](https://discourse.processing.org/t/plot-grafica-in-pgraphics/2334/2):
>
> Seems like the library grafica doesn’t offer us any option to change the PGraphics it draws onto. It directly calls PApplet’s methods to draw on its canvas. disappointed The workaround I’ve come up w/ is to wrap up the grafica’s code on its own PApplet subclass. gift And then call PSurface::setVisible() in order to hide its window. dark_sunglasses And in order to save its current canvas, I’ve added a pre() method to it: void pre() { unregisterMethod("pre", this); saveFrame(dataPat…

---

_[View the full topic](https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643)._
