CLone points motion

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

CLone points motion

Post by Genete »

I don't know if this embedded script exists or not but according to selgin's request I'm trying to achieve a embedded script to clone the movement of the points of one vector layer to other vector layer (inside the same folder layer)
But I have a problem:


How can I access to a Mesh of a vector layer without selecting it? I can access to any layer by its name (or index) but the only way I know to access the Mesh is selecting the layer and accessing to moho:Mesh() function.
The problem is that once I select the layer inside the embedded script I'm not able to select any other layer with user interaction.

Any ideas?
-G
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Post by Touched »

I use a layer script called fa_meshinstance.lua to clone the point movement of another layer. I use this for masked eyes, where the controlled layer contains the black filled parts that should go over the mask area. Is that what you mean?
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Touched wrote:I use a layer script called fa_meshinstance.lua to clone the point movement of another layer. I use this for masked eyes, where the controlled layer contains the black filled parts that should go over the mask area. Is that what you mean?
wow. thank you so much!. i never saw this script (and it were installed in my hard disk :oops: )
thank you genete for being so kind.

this is really great.
here is the link, if someone want it too
User avatar
heyvern
Posts: 7035
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

I've used that meshinstance script as well. It works great.

Actually I think I used it to extract point motion from bone motion... it has been awhile so I don't remember exactly how I did that.

-vern
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Dang! I also have it installed and never used it!
Thanks!
-G
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Woah!
This fazek is a master!!!! It works like a charm!
-G
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Oh oh...
the blurred area is not masked...
Did you get it selgin? or I'm doing something wrong?
-G
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Genete wrote:Oh oh...
the blurred area is not masked...
Did you get it selgin? or I'm doing something wrong?
-G
yeah, i get it. first i have duplicated the layer. then i have cleared the soft edge effect to all the shapes of the mask.

:wink:
Post Reply