# Switch between 2 sketches with PraxisLive

**URL:** <https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686>\
**Category:** Processing\
**Created:** [August 16, 2018, 7:55am UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686 "2018-08-16T07:55:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![squirelo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/squirelo/32/1129_2.png) [@squirelo](https://discourse.processing.org/u/squirelo)\
**Post date:** [August 16, 2018, 7:55am UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686/1 "2018-08-16T07:55:19Z")

</div>

Hi there, and also hi @neilcsmith 🙂

I would like to use Praxis live to easily switch between processing sketches during a live performance (using midi controller)

I installed it and tried some stuff, but it’s still unclear for me how to do import your sketches and make them run in Praxis.

Any tutorial or guide that I can use to get started on this?

Thx a lot 🙂

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [August 16, 2018, 8:42am UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686/2 "2018-08-16T08:42:19Z")

</div>

Hi @squirelo 😄 Happy to answer questions on here, although we also have our own mailing list and chat - you can find them at [Community](https://www.praxislive.org/community/)

The important thing to note is that you’re not _really_ mixing sketches - there is still only one PApplet (per graph at least). There are two base components that act like sketches and wrap a PGraphics - either P2D or P3D. You need to add one of these components to your graph - `video:gl:p2d` or `video:gl:p3d`. The other thing to note is that programming is in Java without Processing language changes.

There’s an old blog post on converting sketches - I’m working on an updated post at the moment - [Transform a Processing sketch into a Praxis LIVE component | Praxis LIVE](https://praxisintermedia.wordpress.com/2015/04/01/transform-a-processing-sketch-into-a-praxis-live-component/)

Also, open up the examples and right-click on any node and select `Edit Code` to see how existing nodes are built. Code will update immediately every time you save - fully supports live-coding.

Video of me talking and demoing it (keynote at a Polish Java conference last year) might also be useful - [https://youtu.be/3cQ-8wZwsmY](https://youtu.be/3cQ-8wZwsmY)

Hope that helps! Ask if you need more. 😄

---

<div class="post-metadata">

**Author:** ![squirelo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/squirelo/32/1129_2.png) [@squirelo](https://discourse.processing.org/u/squirelo)\
**Post date:** [August 16, 2018, 9:08am UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686/3 "2018-08-16T09:08:28Z")

</div>

Awesome thx for the fast answer, I’m gonna try this today.

Cheers 🙂

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [August 22, 2018, 5:50pm UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686/4 "2018-08-22T17:50:46Z")

</div>

So, how did you get on? Any problems, missing info / features for what you want to do?
