Hi feirui445,
re:
> Thank you. I want to press a shortcut key to open C: \ \ test obj,Use_ Importobj
> command, open directly without file dialog box
That command script was not set up to do that so you'll need to make some slight changes to the command.
Open up the file _ImportObj.js and find line number 4 which has this:
code:
var objPath = moi.filesystem.getOpenFileName( 'Import OBJ', ' (*.obj)|*.obj' );
remove that and put in this instead:
code:
var objPath = moi.command.getCommandLineParams();
if ( !objPath ) objPath = moi.filesystem.getOpenFileName( 'Import OBJ', ' (*.obj)|*.obj' );
Then you should be able to give a command line parameter in the shortcut key, like this (no doubled \\ in this case):
_ImportObj c:\test.obj
- Michael
|