easy question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
easy question
Hi - I know the answer is obvious, but I cant figure it out. How do I reference an imported snapshot?
import snapshot from rect therect of window theID
Once the snapshot is there, it is named with an image ID:
image id 1267
import snapshot from rect therect of window theID
Once the snapshot is there, it is named with an image ID:
image id 1267
Re: easy question
Hi Greg,
last image
...
import snapshot from rect therect of window theID
set the short name of last image to "new name of screenshot"
...
Best
Klaus
last image

...
import snapshot from rect therect of window theID
set the short name of last image to "new name of screenshot"
...
Best
Klaus
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: easy question
Thanks Klaus! That was easy.
Re: easy question
Yep, you already mentioned thisadventuresofgreg wrote:Thanks Klaus! That was easy.

Re: easy question
What Klaus said.
This use of the keyword "last" is invaluable in all sorts of similar cases, where the only distinguishing property of an object is that it was created/imported last. The trick is to grab it and modify as soon as possible, so it doesn't get away.
Note that this trick is NOT stable when referring to groups.
Craig Newman
This use of the keyword "last" is invaluable in all sorts of similar cases, where the only distinguishing property of an object is that it was created/imported last. The trick is to grab it and modify as soon as possible, so it doesn't get away.
Note that this trick is NOT stable when referring to groups.
Craig Newman
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: easy question
next issue: I want to take a snap shot of a plot that has been changed with a script, but the snapshot won't wait until the new graphic has been drawn - it always exports a snapshot of the old image.
For example,
set the points of graphic myoldgraphic to mynewgraphic
import snapshot from rect therect of window theID
This always makes a snapshot the myOLDgraphic, not myNEWgraphic. I tried inserting a wait with messages, but that also does not work.
Any ideas?
Thanks Klaus
Greg
For example,
set the points of graphic myoldgraphic to mynewgraphic
import snapshot from rect therect of window theID
This always makes a snapshot the myOLDgraphic, not myNEWgraphic. I tried inserting a wait with messages, but that also does not work.
Any ideas?
Thanks Klaus
Greg