Mikademius
09-19-2005, 12:32 PM
How come this works:
global proc SA_helpWindow()
{
string $helpWinName = "helpWindow";
if (`window -ex $helpWinName`)
{
deleteUI $helpWinName;
}
string $callUserScriptPath = `internalVar -usd`;
string $SA_helpWindow = `window -t "about shaderAssigner" -wh 764 450 -s 0 $helpWinName`;
string $helpMainColumn = `columnLayout helpMainColumn`;
string $helpBrowser = `webBrowser -width 750 -height 390
-url "C:\\Documents and Settings\\martina\\My Documents\\maya\\7.0\\scripts\\final3\\SA\\SA_documentation\\beta0.2_documentation.htm"`;
showWindow $SA_helpWindow;
}
SA_helpWindow;
while this doesn't?
global proc SA_helpWindow()
{
string $helpWinName = "helpWindow";
if (`window -ex $helpWinName`)
{
deleteUI $helpWinName;
}
string $callUserScriptPath = `internalVar -usd`;
string $wtf = ($callUserScriptPath + "final3/SA/SA_documentation/beta0.2_documentation.htm");
string $SA_helpWindow = `window -t "about shaderAssigner" -wh 764 450 -s 0 $helpWinName`;
string $helpMainColumn = `columnLayout helpMainColumn`;
string $helpBrowser = `webBrowser -width 750 -height 390
-url $wtf`;
showWindow $SA_helpWindow;
}
SA_helpWindow;
Can't I use the internalVar command here because the -url flag must have backslashes? I would like the script to point to the htm file, but I don't want the user to have to type in the path themselves.. Any ideas?
btw: the error is //Warning: c is not a registered protocol.
What does that mean?
global proc SA_helpWindow()
{
string $helpWinName = "helpWindow";
if (`window -ex $helpWinName`)
{
deleteUI $helpWinName;
}
string $callUserScriptPath = `internalVar -usd`;
string $SA_helpWindow = `window -t "about shaderAssigner" -wh 764 450 -s 0 $helpWinName`;
string $helpMainColumn = `columnLayout helpMainColumn`;
string $helpBrowser = `webBrowser -width 750 -height 390
-url "C:\\Documents and Settings\\martina\\My Documents\\maya\\7.0\\scripts\\final3\\SA\\SA_documentation\\beta0.2_documentation.htm"`;
showWindow $SA_helpWindow;
}
SA_helpWindow;
while this doesn't?
global proc SA_helpWindow()
{
string $helpWinName = "helpWindow";
if (`window -ex $helpWinName`)
{
deleteUI $helpWinName;
}
string $callUserScriptPath = `internalVar -usd`;
string $wtf = ($callUserScriptPath + "final3/SA/SA_documentation/beta0.2_documentation.htm");
string $SA_helpWindow = `window -t "about shaderAssigner" -wh 764 450 -s 0 $helpWinName`;
string $helpMainColumn = `columnLayout helpMainColumn`;
string $helpBrowser = `webBrowser -width 750 -height 390
-url $wtf`;
showWindow $SA_helpWindow;
}
SA_helpWindow;
Can't I use the internalVar command here because the -url flag must have backslashes? I would like the script to point to the htm file, but I don't want the user to have to type in the path themselves.. Any ideas?
btw: the error is //Warning: c is not a registered protocol.
What does that mean?
