We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Working with PShapes
Page Index Toggle Pages: 1
Working with PShapes (Read 651 times)
Working with PShapes
Apr 16th, 2010, 6:05pm
 
I have a large SVG object which I'm pulling into a PShape and then finding children of this PShape.

During the life of the program, I need to keep refreshing individual children but do not want to load the entire SVG object again and again and again. I've tried setting the child PShape as a PShape variable inside an instance of its own class, but this just tells me I have a null pointer exception. Is there any way to force the stored PShape to be a full object copy and not a pointer?
Re: Working with PShapes
Reply #1 - Apr 17th, 2010, 2:33am
 
I fail to grasp the problem. Can you give some example code (simplified) of what you are trying to do?

What do you mean by "refreshing individual children"?
Page Index Toggle Pages: 1