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 & HelpPrograms › Selection window help
Page Index Toggle Pages: 1
Selection window help (Read 653 times)
Selection window help
Nov 15th, 2009, 10:40pm
 
I am trying to make a window where i can select whichever .obj file i want to work with in the program.

Is there a way to create a selection window that is clickable where it will make the .obj file my model.  I have been trying to figure it out for a few days and I am just lost.
Re: Selection window help
Reply #1 - Nov 16th, 2009, 3:14am
 
Quote:
void setup() {
  String input = selectInput();
  if ( input != null && input.endsWith(".obj") ) {
    // TODO pass 'input' to the obj loader
  }
}

Page Index Toggle Pages: 1