How to use Scripts?
All  1  2-5

Previous
Next
 From:  Martin (MARTIN3D)
7269.2 In reply to 7269.1 
Hi dune1982,

you call it by its name without the .js extension i.e. if you copy a script named objimport.js to the commands folder and restart MoI you can execute the script either by typing

TAB followed by objimport followed by ENTER

or you make a short cut key with the command objimport
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7269.3 
Stricly you must type in the case of Max Smirnov for all of its scripts
_objimport or any _ObjImport or _OBJIMPORT etc... but don't forget the "_" !!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dune1982
7269.4 
Ok that worked, thank you.

But another thing. Lets say I want to make an extra button for that in the bottom line.

I know how to make a new button in the bottom line, how to set it up in the commandbar.htm and how to make a funktion that starts when i click on that button, but how do I make the funktion call the _importobj script?

Thank you
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Max Smirnov (SMIRNOV)
7269.5 In reply to 7269.4 
code:
<moi:CommandButton icon="icons/BlankIcon.png" command="_ImportObj">Import Obj</moi:CommandButton>
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-5