Page 1 of 2

Animate the origin of layers

Posted: Sun Jul 24, 2011 1:50 pm
by ponysmasher
Just wrote this script and so far it seems to work: Download here

Here's how it works:
YouTube clip

Posted: Sun Jul 24, 2011 4:15 pm
by GCharb
Cool, will have a look at it.

Seems like something that could be useful, already have a few ideas in mind.

Thanks!

Posted: Sun Jul 24, 2011 4:42 pm
by jonbo
This looks pretty cool, pony, I'm going to have to play with this one and your camera script. You're putting these out faster then I can get a good handle on them. Thanks for these. Maybe I'll get ahead of your output one of these days :)

Posted: Sun Jul 24, 2011 9:15 pm
by funksmaname
Nice one Pony! keep on smashin'

Posted: Sun Jul 24, 2011 10:12 pm
by Víctor Paredes
absolutely great!
I'll check tomorrow with more time.
thank you very much!

Posted: Tue Jul 26, 2011 12:09 pm
by uddhava
ponysmasher,

I tried out this script, but when I tried moving the origin it wouldn't move at all. Lua Consule reads....

....error in function 'layer'. argument#2 is 'nil'; 'number' expected.

I have version 8.01 of ASPro and I use Windows 7.

udd

Looks nice though. uddhava

Posted: Tue Jul 26, 2011 12:44 pm
by ponysmasher
uddhava wrote:ponysmasher,

I tried out this script, but when I tried moving the origin it wouldn't move at all. Lua Consule reads....

....error in function 'layer'. argument#2 is 'nil'; 'number' expected.

I have version 8.01 of ASPro and I use Windows 7.

udd

Looks nice though. uddhava
Did you create a layer with the same name as the layer you want to animate the origin of and add ".origin" to the end?

If the layer where you want to animate the origin is called "My fabulous layer", then you have to create a layer called "My fabulous layer.origin".
The keyframes for the layer have to be stored somewhere so my solution is to store them in that layer.

Oh right, I think the .origin layer also has to be a top layer, that is not inside another layer. Haven't added any code for checking group or bone layers (yet).

Posted: Tue Jul 26, 2011 1:28 pm
by uddhava
I did what you said and now the origin will move again, but the same error message comes up and it doesn't create a keyframe. It doesn't animate.

Posted: Tue Jul 26, 2011 1:38 pm
by jonbo
Hey Udd, you get that error because you are embedding the script on the wrong layer. You embed it on the first layer not the .origin layer. Watch the video again, you'll see what I mean. I did that too at first and got that same error you got.

Posted: Tue Jul 26, 2011 2:12 pm
by uddhava
jonbo wrote:Hey Udd, you get that error because you are embedding the script on the wrong layer. You embed it on the first layer not the .origin layer. Watch the video again, you'll see what I mean. I did that too at first and got that same error you got.
Okay, that fixed the problem. Actually all of my problems with this script came from not watching the video carefully enough.

Thanks jonbo.

Thanks ponysmasher, sorry for my negligence. Btw, I notice more and scripts are listed on your website. Great contribution!

Re: Animate the origin of layers

Posted: Sat May 09, 2020 11:21 am
by Rowan
Hello David, how are you? I was wondering if you still have the Animatie Origin script available? I could really use it for my project! Thanks, greets

Re: Animate the origin of layers

Posted: Sat May 09, 2020 4:40 pm
by Greenlaw
I'm curious about this too...is it available for 12 or 13?

I have to work around the lack of an animateable origin by nesting in groups and then animating the child layers. This works fine for a shot-specific setups but it's really not the same thing as animating the origin directly.

Re: Animate the origin of layers

Posted: Sun May 10, 2020 9:56 pm
by Penny
I remember I used this script on a project, well... many years ago. Fortunately I stored a copy. Don't know if still works on 12 or 13.

Here it is: https://drive.google.com/open?id=1fPAnd ... 9adt1MSFG2

Re: Animate the origin of layers

Posted: Tue May 12, 2020 3:17 pm
by Rowan
Penny wrote: Sun May 10, 2020 9:56 pm I remember I used this script on a project, well... many years ago. Fortunately I stored a copy. Don't know if still works on 12 or 13.

Here it is: https://drive.google.com/open?id=1fPAnd ... 9adt1MSFG2
That's great Penny thanks, just fiddled around with it quickly and it still seems to work on 12 :D

Re: Animate the origin of layers

Posted: Tue May 12, 2020 11:26 pm
by Greenlaw
Thanks for posting that Penny! Will check it out.