copy animation between layers?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Hi mr.blaaa!
No I didn't get it to work, hmmm....strange indeed.
The alpha was still in the image and when I used it in "image texture" in Styles window, I was only available to load it in stretch mode, in tile mode it didn't show up at all...well I loaded it in stretch mode then, just to see if it would follow the layer movements from the cloned layer, and it did :D
unfortunately all transparence part were filled with white color :(
I have'nt tried to experiment with it futher, I just can't imagine what was wrong.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

and yes I checked the image after rendering it, in tile mode it showed just white color where the image should have been
User avatar
mr. blaaa
Posts: 622
Joined: Sun Jul 31, 2005 12:41 am
Location: ---
Contact:

Post by mr. blaaa »

that is really sad, theoretically it shall work...

did u find another way to work around?
Image
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

yes it should have worked, it was like a ghost that came in to this particular moho file...hehehe :D

Yes I made a work around, I made a new layer with the texture and animated the layer as close as I could to the original, you can see the result here: http://www.lostmarble.com/forum/viewtopic.php?t=2289
I think you allready seen it without knowing it was this movie I was talking about :wink:

Well I'm really glad that you're so helpfull and concerned, I found that a lot of people on this list is very kind and helpfull people.
User avatar
mr. blaaa
Posts: 622
Joined: Sun Jul 31, 2005 12:41 am
Location: ---
Contact:

Post by mr. blaaa »

ah, ok... now i have a clear conscience :D

8)
Image
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Re: copy animation between layers?

Post by macton »

ulrik wrote:Is it possible to copy all animation (layer transpose, rotate, scale etc.) from one vector layer to another vector layer, or even better in my case, to a group layer?
Here you go.

I added a description for how you can do this with my load and save animation scripts. (And you could copy the animation data from a single vector layer to a group layer if you wanted.)

http://www.lostmarble.com/forum/viewtopic.php?t=2448
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

:D Macton, you're just sooo great!! thanks a ton
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Hi!

I can't get this scripts to work, (crashcores "Load and save layer animation") I save the layer translation with "Save layer animation v1.4" from a vector layer and load it with "Load layer animation v1.4.1" in to an image layer and I get this message:
/cc_load_layer_animation.lua:614: attempt to index local ´layer´ (a nil value)

Does anybody know what I'm doing wrong? please help :?
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Post by macton »

ulrik wrote:I save the layer translation with "Save layer animation v1.4" from a vector layer and load it with "Load layer animation v1.4.1" in to an image layer and I get this message:
/cc_load_layer_animation.lua:614: attempt to index local ´layer´ (a nil value)
I'm not sure. Perhaps when I added the ability to save/load all the layer specific data the ability to save/load between different layer types was lost. I'll have a look and see if that's the problem - It's a good feature I'd like keep support for.
Dronowar
Posts: 2
Joined: Fri Nov 18, 2005 12:47 pm

Re: copy animation between layers?

Post by Dronowar »

ulrik wrote:Is it possible to copy all animation (layer transpose, rotate, scale etc.) from one vector layer to another vector layer, or even better in my case, to a group layer?
Try use Actions\Insert Copy :)
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

macton, it is indeed a good script and worth keeping updated :)
anyway, I managed to get it to work, in "save layer animation" I had to use the option "apply to all layers" and when loading the data with "load layer animation" I used the option "apply starting with selected layer" and voila!!
I thought I should use the option "only apply to selected layer" in both Load and Save script, but it didn't work.
Does "only apply to selected layer" means type of layer? then I understand why it didn't work.
Well I'm very happy for all your scripts, they do make things easier. :D

Dronowar, I don't think it's possible to use actions from one layer to insert in an other layer, at least I can't figure out how it should be done.
If you know how, please share it with me :)
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

I'm not sure. Perhaps when I added the ability to save/load all the layer specific data the ability to save/load between different layer types was lost. I'll have a look and see if that's the problem - It's a good feature I'd like keep support for.
I've added copy and paste scripts specifically to copy generic layer attributes between different types of layers.
I've added instructions on how to do this as well.
See: http://www.lostmarble.com/forum/viewtop ... sc&start=0
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Update

Post by ulrik »

macton wrote:
I'm not sure. Perhaps when I added the ability to save/load all the layer specific data the ability to save/load between different layer types was lost. I'll have a look and see if that's the problem - It's a good feature I'd like keep support for.
I've added copy and paste scripts specifically to copy generic layer attributes between different types of layers.
I've added instructions on how to do this as well.
See: http://www.lostmarble.com/forum/viewtop ... sc&start=0
That's great macton, I'll try them right away...thanks a lot, nice christmas present!, happy christmas and a happy new year to you. :D :)
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

I have a little problem with the "copy and paste generic scripts", when copying on a selected Group layer I get this message : 140: "tmpname" not supported, and when pasting at a vector layer (not that anything is copied I guess) I get this: 269: bad argument #1 to 'open' (string expected, got nil)
I'm using macintosh osx 10.4.3
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Post by macton »

ulrik wrote:I have a little problem with the "copy and paste generic scripts", when copying on a selected Group layer I get this message : 140: "tmpname" not supported, and when pasting at a vector layer (not that anything is copied I guess) I get this: 269: bad argument #1 to 'open' (string expected, got nil)
I'm using macintosh osx 10.4.3
OK - I take this to mean that os.tmpname() is not available cross-platform. Let me look for an alternative and get back to you.
Post Reply