Scripting the Trim command -- programmatically select objects to keep or remove?
All
1-6
7-9
From:
mike (MVERHULST)
29 May 2024 (7 of 9)
11415.7
In reply to
11415.6
interesting
that is the whole script i dont have a html file
i am running it with this command
"C:\Program Files\MoI 4.0\MoI.exe" C:\Users\Administrator\Desktop\trimtest.js
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
mike (MVERHULST)
29 May 2024 (8 of 9)
11415.8
In reply to
11415.7
excellent,
thanks for your help :)
i needed to add
var objects = gd.getObjects();
objects.unlockSelection();
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
Michael Gibson
30 May 2024 (9 of 9)
11415.9
In reply to
11415.8
Hi Mike, clearing selection lock is something that normally happens when a command ends.
When you run a startup script it's not using the "command" mechanism and so you'll have to do some things manually like that.
- Michael
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
Reply to All
Show messages:
All
1-6
7-9