Properties
Category
Uncategorized
Similar Topics
Statistics
Comments
2
Participants
2
Subscribers
3
Votes
1
Views
389
Share
Needs Answer
I want to get all selected objects on scripts, or get all the points on scripts, how can I do?
Much thanks.
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
Please explain overall what you are trying to do
Hi Michael,
Tank you. For some reason we need to bulk processsome objects or its label, for example, rename or set color. So I think it will be useful if we can get all selected objects, or all of some specified kind of objects.
Following is some code but for all objects:
var length = ggbApplet.getObjectNumber();
var i = 0;
var names = new Array();
for (i = 0; i < length; i++) {
names = ggbApplet.getObjectName(i);
ggbApplet.renameObject(names, "prefix" + names)
}
Comments have been locked on this page!