Skip to content

Processing 4.2 pdez files!! #947

@shiffman

Description

@shiffman
Member

Wow! Processing 4.2 adds the new pde:// protocol which allows you to open Processing sketches in the PDE directly from the browser!! We should implement this into the site for all video pages!!

See: https://github.com/processing/processing4/releases/tag/processing-1292-4.2

cc @benfry @SableRaf

Will tackle this here first, but then I can add this to the Nature of Code website as well!

Activity

dipamsen

dipamsen commented on Apr 11, 2023

@dipamsen
Member

Here is a rough list of steps for implementing this to the site:

  • Create .pdez compressed files for all code examples in https://github.com/CodingTrain/Coding-Challenges
    Add functionality to the website to link to pde:// urls of the .pdez files (if user has required version of Processing installed (?))
    Update content json files to link to .pdez files on GitHub
SableRaf

SableRaf commented on May 2, 2023

@SableRaf

Quick update to share my reference implementation for the Open in Processing button:

https://sableraf.github.io/testURIscheme/

Notice the tooltip that serves as a fallback in case Processing is not installed.

We could also consider having a separate button for downloading the sketch.

Note: support for pde:// on Linux is still pending but this Pull Request should solve the issue: processing/processing4#696

kfahn22

kfahn22 commented on Nov 13, 2024

@kfahn22
Collaborator

I tried this again. I was able to open @SableRaf test case, so I used his testURIscheme with my Persian-rug sketch and it worked. Should we revisit this?

https://kfahn22.github.io/Persian-Rug/

dipamsen

dipamsen commented on Nov 13, 2024

@dipamsen
Member

I still face this processing/processing4#698 issue on Windows, due to which there hadn't been any progress on this earlier.

SableRaf

SableRaf commented on Nov 14, 2024

@SableRaf

I still face this processing/processing4#698 issue on Windows, due to which there hadn't been any progress on this earlier.

Do you consider this a blocker? If so we could try looking into it, or if you'd like to submit a fix, I'll be happy to review it. We have just released Processing 4.3.1 and resuming development at processing/processing4.

Stefterv

Stefterv commented on Nov 15, 2024

@Stefterv

A fix is ready to be merged here: processing/processing4#854

shiffman

shiffman commented on Nov 15, 2024

@shiffman
MemberAuthor

Yay! I'd love to have this incorporated into the site if anyone has interest in working on it!

kfahn22

kfahn22 commented on Nov 30, 2024

@kfahn22
Collaborator

I have added a pull request with the Coding Challenge Processing example sketches converted to .pdez files here.

shiffman

shiffman commented on Dec 2, 2024

@shiffman
MemberAuthor

@kfahn22 PR merged!

SableRaf

SableRaf commented on Mar 25, 2025

@SableRaf

Hey @shiffman!

I just wanted to update you on the improvements to the URI schema that we are shipping in 4.4.1 (currently available in Beta) thanks to @Stefterv's amazing work 💙

The new Schema will let you dynamically create pde:// links.

It supports Base64 encoding for shorter sketches, and linking to multiple .pde or other assets.

This entirely bypasses the need to generate .pdez files and opens the door to some really fun possibilities!

See more: https://github.com/processing/processing4/blob/main/SCHEMA.md

dipamsen

dipamsen commented on Mar 25, 2025

@dipamsen
Member

That's very cool, the URL option is very helpful here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shiffman@SableRaf@Stefterv@dipamsen@kfahn22

        Issue actions

          Processing 4.2 pdez files!! · Issue #947 · CodingTrain/thecodingtrain.com