[JW Lua] FCShapeDef:SaveWithType creates new shape, instead of keeping the old one
Jan Angermüller
jan at angermueller.com
Sat Jan 23 19:02:13 CET 2016
Jari,
it looks as though if FCShapeDef:SaveWithType does the same as
SaveNewWithType: it creates a *new* shape. Here is a code snippet that
does a simple load and save. The resulting shape has a new item number
instead of the old one. When I use :Save() instead of :SaveWithType(...)
the shape item number remains the same.
local shape=finale.FCShapeDef()
shape:Load(1)
print(shape.ItemNo,shape.Type)
shape:SaveWithType(shape.Type)
print(shape.ItemNo,shape.Type)
Prints:
1 0
127 0 -> I would expect 1 0 (127 is the new shape item no)
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20160123/e09e13ac/attachment.htm>
More information about the JWLua
mailing list