I have a substack that has a field with text in it. I want to convert the card into an image (jpeg) so I can use that as part of an image manipulation. The image will then be read as Black or White pixels, and "inserted" into another image by 'adjusting' the values of the channels.
When an image is loaded that will be 'adjusted', a substack with a dummy image and field will open and be adjusted to be the same size as the loaded image. It is important that the image and the field be physically the same size.
I have got the image manipulation part all coded and working wonderfully, but damned if I can work out how to do the simple bit!!!
I need to: Take a snapshot of a card, convert it into a jpeg, place it on the same card. I currently have a dummy image called "Image" on the card.
I have:
Code: Select all
on CodeImage
go to stack "code" of this stack --may be redundant--
export snapshot from card "Code" of stack "Code" to tCodeFile AS JPEG
set the imageData of image "Image" of stack "Code" to tCodeFile
--do more stuff--
end CodeImage
When I change the script to read:
Code: Select all
export snapshot from card "Code" of stack "Code" to file "Code.jpg" as JPEG
I'm clearly missing something fundamental, but it's not so fun, so I am just getting da mental...
Help please!
Thanks in advance.
XdM