otuama
04-08-2009, 01:10 PM
Hi all,
Arrrrrrrrrgh!!!!! Just thought I'd let that out.
Ok, I have a problem. I'm writing a script for an assignment and I'm stuck.
What I'm attempting to do is make my script a shelf button. I have 2 files, brickCodeSetup.mel and brickCode.mel.
These 2 files are put in the project > script folder.
When running brickCodeSetup a shelf button is made and an image I made is assigned to it. I did have a huge problem today which was that...... it didn't work. The making the button part worked but it couldn't run the script.
Anyway, after ages of trying to figure it out (and banging my head on the desk) I sorted that out (yay).
So, now what happens is when brickCodeSetup is run a button is made. When the user presses the button the script runs.
BUT.... I've now got another problem and I can't understand what's wrong. To cut a long story short I have 2 windows and when running the script, when a button is pressed I either get an error message saying 'there is no window' or the script seems to run fine (no error messages) but the window doesn't appear.
-------------------------
If anyone thinks they can help me please get in contact. I will need to email you some files and will go into greater detail of the problem.
Many thanks,
Sean
Arrrrrrrrrgh!!!!! Just thought I'd let that out.
Ok, I have a problem. I'm writing a script for an assignment and I'm stuck.
What I'm attempting to do is make my script a shelf button. I have 2 files, brickCodeSetup.mel and brickCode.mel.
These 2 files are put in the project > script folder.
When running brickCodeSetup a shelf button is made and an image I made is assigned to it. I did have a huge problem today which was that...... it didn't work. The making the button part worked but it couldn't run the script.
Anyway, after ages of trying to figure it out (and banging my head on the desk) I sorted that out (yay).
So, now what happens is when brickCodeSetup is run a button is made. When the user presses the button the script runs.
BUT.... I've now got another problem and I can't understand what's wrong. To cut a long story short I have 2 windows and when running the script, when a button is pressed I either get an error message saying 'there is no window' or the script seems to run fine (no error messages) but the window doesn't appear.
-------------------------
If anyone thinks they can help me please get in contact. I will need to email you some files and will go into greater detail of the problem.
Many thanks,
Sean