Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: #445/#446 generate .pdez files for each code example #478

Conversation

umangutkarsh
Copy link

Fixes #445
Fixes #446

To create the updatePdezFiles.js script for updating .pdez files based on the provided information, and the generatePdezContent() function, the followiing code can be used. This script iterates through the examples, generates .pdez content using the generatePdezContent() function, and writes the content to the corresponding .pdez files.

The script assumes that you have a directory structure with .pde files and that the generatePdezContent function generates the .pdez content based on the provided example data. You can modify the generatePdezContent function to customize the content as needed.
Make sure to adjust the paths and update the generatePdezContent function to match your specific requirements for generating .pdez files.

Copy link
Contributor

@Stefterv Stefterv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi umangutkarsh,

Thank you for your contribution. I've taken a look and it looks like your script does not generate valid PDEZ files. PDEZ Files are zip files containing the sketches, not JSON with metadata

Here's an example of a PDEZ file by @SableRaf https://sableraf.github.io/testURIscheme/sketchBundle.pdez

Also there was request to add this functionality to the existing updateExamples.js file instead of creating a new one

@Stefterv Stefterv closed this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Open in Processing" link to code examples Generate .pdez files for each code example
2 participants