On Sun Apr 22, 2007, Jim Ault JimAultWins at yahoo.com wrote:
On 4/22/07 1:30 PM, "Wilhelm Sanke" <sanke at hrz.uni-kassel.de> wrote: > Addendum: > > Even when I set the lockloc of the image to true after having it "moved" > to the loc of the group, once I change the imagedata of the image the > image snaps back to near the topleft of the group instead of remaining > at the center. When I do image operations using Rev code to change an image, I code the following: set the cpUndoHt of img "target" to the height of img "target" set the cpUndoWd of img "target" to the width of img "target" set the cpUndoTLeft of img "target" to the topLeft of img "target" set the cpUndo of img "target" to the imagedata of img "target" save this stack --now make changes -- then adjustments, or undo, even the next time you launch Jim Ault Las Vegas
Thanks for the response, Jim, but could it be that you missed the first part of my problem report preceding the "addendum"?
If the image in question is smaller than the rect of its group there is no way to place it at the center of the group using "set the loc", but only with "move to the loc".
Having stored the topleft of the image in a custom property or elsewhere (after it had been "moved" to the center) in the first place does not prevent that the image is moved to the topleft of the group when the imagedata are changed, nor is it possible in such a case to reset the image to its former "topleft" stored somewhere. Only using "move" enables you to set the loc of the image to the loc of the group.
Best, Wilhelm Sanke _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
