Skip to content

How to use PeasyCam (Java/.jar based Processing library) #110

Answered by hx2A
villares asked this question in Q&A
Discussion options

You must be logged in to vote

Update: With py5_tools.get_classpath() I can see the peasycam.jar.

That was a good debugging step. Sometimes you might think the jar is being included but it is actually not. I'm happy you thought to do that.

I also tried a bunch of import statements that didn't work. Eventually I stopped guessing and got the answer by looking at the PeasyCam.java source code. The package name for that class is peasy. The line of code you need is:

from peasy import PeasyCam

There's also an example notebook using PeasyCam in py5examples with the correct import statement.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@villares
Comment options

villares Aug 11, 2022
Collaborator Author

@hx2A
Comment options

@villares
Comment options

villares Aug 11, 2022
Collaborator Author

Answer selected by villares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants