Page 1 of 2
Locking Points
Posted: Mon Dec 10, 2007 9:19 pm
by DK
Is there a way to lock points so that they do not pass a particular point? even if they are bound to bones? Is it possible to write a script that could do this?
I have been looking at applying this idea to the scale rotate technique to prevent detail lines on a face going past a certain point in a head turn. You cold also use such a script to apply to pouring fluids onto a specific area. Currently trying to mask lines out is almost impossible but If you were abe to crunch down all points in a line to a small group as the bone rotated or moved it would be a lot easier to mask out.
Any help suggestions?
D.K
Posted: Mon Dec 10, 2007 10:00 pm
by Genete
Hi DK!
have you seen my FREEZE points script?
There is a link in my signature to the my scripts in the forum.
I hope it is what you're looking.
Best
-G
PS: Nah! you're looking for a "limit X or Y position" for points. I guess this script can be modified to do something like you need.
Posted: Mon Dec 10, 2007 10:05 pm
by DK
Hi Genete
I'm eagerly having a look now!!!!!
Cheers
D.K
Posted: Tue Dec 11, 2007 2:45 pm
by Genete
DK, please look again to my signature link. I've modified the scripts and now you can limit by X or by Y the movements of the points. Even using bones!!
Best
-G
Posted: Tue Dec 11, 2007 3:24 pm
by Genete
A dropping sample. To make it vertical just rotate the layer
It is a little tricky. I've created the animation with point motion and some keyframes. But between keyframes I selected only the points that are not flatten so the rest is kept in the wall.
-G
Posted: Tue Dec 11, 2007 3:49 pm
by DK
Wow...that's brilliant Genete!!! A script like this will be well used I imagine. I can't wait to try it out!
Imagine growing plants, trees etc.
D.K
Posted: Tue Dec 11, 2007 4:11 pm
by DK
I installed the scripts but there are now lua consoles poping up every time i try to do anything in AS?
D.K
Posted: Tue Dec 11, 2007 10:01 pm
by Genete
DK wrote:I installed the scripts but there are now lua consoles poping up every time i try to do anything in AS?
D.K
It is normal.
When you run the script it looks if the table where the points positions are stored exists. If it doesn't exists the script complains and tell you: "table layer". If it is so annoying I can remove it.
It is like a remind to you tell you that you have to store the freeze position of the points. When you do that then a bunch of info is drop to the console and the "table layer" message wont never appear (well, when you open the file again it reappears)
Remember:
ge_freeze_points.lua >>>> scripts/tools
ge_select_frozen_poins.lua >>>> scripts/menu
ge_freeze_points.png >>>> scripts/tools
and add the
to your _tool_list.txt
-G
Posted: Tue Dec 11, 2007 10:20 pm
by heyvern
It might be better to use an alert box rather than the lua console. I can take a look at the code and see how this might work.
Easier to close out an alert using the return key than to close the lua console.
-vern
Posted: Tue Dec 11, 2007 11:48 pm
by DK
You guys are amazing with your scripts
Many thanks
D.K
Posted: Wed Dec 12, 2007 9:27 am
by Genete
Vern,
please feel free to change or improve what you consider!
DK, please post your progresses if the script is used
-G
Posted: Wed Dec 12, 2007 4:05 pm
by DK
Vern. It would be great if you could take the lua console out of the script as it makes it very hard to work in AS when there are boxes poping up.
Thanks to you both!
D.K
Posted: Wed Dec 12, 2007 4:09 pm
by Genete
DK wrote:Vern. It would be great if you could take the lua console out of the script as it makes it very hard to work in AS when there are boxes poping up.
Thanks to you both!
D.K
I just minimize the lua console.
Posted: Wed Dec 12, 2007 4:11 pm
by DK
Ahh...thanks Genete. I'll try that instead of closing it.
EDIT: This is a handy script but it seems to me that you have to maipulate each point to an x,y co-ordinate then run the freeze script so that when the shape moves through these particular co-ordinates the points will not pass?. Is this correct?
D.K
Posted: Wed Dec 12, 2007 8:02 pm
by heyvern
Genete wrote:DK wrote:Vern. It would be great if you could take the lua console out of the script as it makes it very hard to work in AS when there are boxes poping up.
Thanks to you both!
D.K
I just minimize the lua console.
can't do that on a mac.
-vern