rbaugh
06-28-2009, 09:55 PM
I am having trouble getting the proper Syntax correct that would allow me to create a button in my external webbrowser dialog box for importing a maya file into an existing scene. My goal is to create a library of objects on a web page where I can click a button (or image of the object) to import into a scene.
________________________________________________________
Maya example in HELP for create a "new scene" button:
Sub NewSceneButton_OnClick
Call SendCommand("file -f -new")
End Sub
<INPUT NAME="NewSceneButton" TYPE="BUTTON" VALUE="New Scene" ID="NewSceneButton">
________________________________________________________
I would like to do the same but to import a maya file instead. I am missing the proper syntax and cannot get it to work. I believe the "call Sendcommand" may be VB but not sure. Its hard to find any examples out there....
________________________________________________________
a simple attempt example:
Sub importfile_OnClick
Call SendCommand("file -import C:/Temp/test.mb")
End Sub
<INPUT NAME="importfile" TYPE="BUTTON" VALUE="importfile" ID="importfile">
________________________________________________________
Does anyone know the correct syntax that might work? I've put in many variations with no luck.
Any help is GREATLY appreciated!
rbaugh
________________________________________________________
Maya example in HELP for create a "new scene" button:
Sub NewSceneButton_OnClick
Call SendCommand("file -f -new")
End Sub
<INPUT NAME="NewSceneButton" TYPE="BUTTON" VALUE="New Scene" ID="NewSceneButton">
________________________________________________________
I would like to do the same but to import a maya file instead. I am missing the proper syntax and cannot get it to work. I believe the "call Sendcommand" may be VB but not sure. Its hard to find any examples out there....
________________________________________________________
a simple attempt example:
Sub importfile_OnClick
Call SendCommand("file -import C:/Temp/test.mb")
End Sub
<INPUT NAME="importfile" TYPE="BUTTON" VALUE="importfile" ID="importfile">
________________________________________________________
Does anyone know the correct syntax that might work? I've put in many variations with no luck.
Any help is GREATLY appreciated!
rbaugh
