Pulling up a different canvas depending on the variable
Hi All,
I am trying to set the canvas "my_target_canvas" to pull up a different canvas depending on what the variable "target_pic" is. I've tried doing this below, but I'm getting an error when it tries to run through the code. All of the sketchpads have been created elsewhere and are being called up by name in the code. Can you see something that might be a problem here or have suggestions for fixing?
Comments
Hi,
A line like this:
… in an otherwise reasonable script, suggests that you're trying to modify a script that you got from someone else, but that you don't actually know any Python. Am I correct?
If so, then it's probably best to start by taking a step back, and first learning some basic Python:
This won't take long--you don't need more than the basics. But then we have some common ground to talk about what you actually want to do here, and why it doesn't work. If we try this now, I think we'll just miscommunicate. What do you say?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!