Okay, so say I am trying to make something happen whenever any object in the scene is moved/rotated/scaled.
If I am working with a single selected object that has no children, I can use this:
when transform objects change id:#transform handleAt:#redrawViews do
(
format "Transform changed
"
)
And it will tell me every time I adjust that object.
However, if I have 2 or more objects selected, or if I am adjusting an object that has other objects parented to it, the construct will run separately for every single one of them affected.
I’m aware that I can attach a separate construct to each object in the scene, but I want to know if there is any way to prevent multiple occurrences on a scene-wide check for transform changes.
I also have another question, whether the above is doable or not. Is there any way to make a when construct identify the object it is operating on?
