automatic import of subfiles
All  1-3  4-5

Previous
Next
 From:  Michael Gibson
6708.4 In reply to 6708.3 
Hi Ralf,

> but i thought more complex.. something like this:

That will work but just one thing to note is that having something alter geometry in an "instant script" like that rather than as a command will not have undo records created for them.

If you want to make it so that import will work with undo, take that same script and put it in a separate .js text file, and then put that file in the \commands sub-folder. Then in the shortcut key put the plain file name (no path and no .js file extension) as the command part of the shortcut key.

One of things that happens when stuff is run as a "command" is that the undo system is initialized and watches for changes to geometry and then creates undo records when the command ends. In the future I want to change this so that instant script would have undo records created automatically as well but currently they don't.

- Michael
  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:  r2d3
6708.5 In reply to 6708.4 
Michael, you are the best! :-)

THX a lot
  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-3  4-5