Page 1 of 1

.cel scripts - unmark cmd modification?

Posted: 20.07.2003, 14:39
by don
In .CEL scripting, when the user wants to "mark" certain objects, the first thing that needs to be done, aside from turning on Marking, is to clear ALL of the object-marks that are currently set.

But, there doesn't appear to be a way to do this, as the "unmark" command requires an object name.

The person writing the script does not know what specific objects are currently marked (by the user or by another script), so how can they be specified?

Possibilities:
* Add "all" as an "object" name to the existing unmark command.
* Add an "unmarkall" command.

Posted: 20.07.2003, 18:38
by chris
Don,

This is a very good suggestion . . . The celx scripting already has an unmarkall command. I just implemented unmarkall for .cel scripting as well; it will be in the next prerelease.

--Chris

Posted: 20.07.2003, 21:54
by don
Thank you Chris.

Would the following be a correct example?

Code: Select all

unmarkall {}

-Don

Posted: 20.07.2003, 22:04
by chris
Yes, that's all there is to it . . . no options at all for unmarkall.

--Chris

Posted: 20.07.2003, 22:05
by don
Thanks again Chris.