Creating a Texture and defaultNavigation command

hey,

im creating a script that has a user press a button that will open the defaultNavigation window for the purpose of creating some kind of texture node...is there a way to have my script pause running until the user has selected a texture to create?

the workflow would be like this:
1. user presses button
2. defaultNavigation window opens (script pauses waiting for user)
3. user selects texture node
4. scripts uses new texture node ...

any help is appreciated...
thanks

There are a lot of books out there on creating "GUIs" that should be where you begin. My bet is you're a step away from connecting all the functions in a GUI.

actualy youd split your script into two. First the part that spawns the ui and then let the ui call for the script once its dismissed or whatever.