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 › Grab sketch name as string
Page Index Toggle Pages: 1
Grab sketch name as string (Read 885 times)
Grab sketch name as string
Apr 23rd, 2010, 12:05pm
 
Is there an easy to grab the name of the sketch and put it into a string?
Re: Grab sketch name as string
Reply #1 - Apr 23rd, 2010, 12:35pm
 
Code:
String sketchName;

void setup(){
 size(200,200);
 sketchName = getClass().getSimpleName();


}

Cheesy
Re: Grab sketch name as string
Reply #2 - Apr 23rd, 2010, 3:22pm
 
Awesome! Thanks for the help.
Page Index Toggle Pages: 1