i have a script request! (Poses)

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

Moderators: Víctor Paredes, Belgarath, slowtiger

DarthFurby
Posts: 510
Joined: Sat Jul 29, 2006 1:34 pm
Location: New York City
Contact:

Post by DarthFurby »

As usual, awesome work Genete! Love how the control pose model can be boned like a normal character rig.

Chucky, I'm not sure if this will fix things, but for Genete's file, before you press play move the playhead to frame 5, (playing on frame 0 will give you script errors and other strange results.)

For your own model, make sure you're adding the script and everything else, like naming the pose bones or creating vector shapes, on FRAME ZERO. That messes me up almost every time.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post by chucky »

Check that you have the ge_toggle_keyframe_poses.lua installed and that it is set to 'false'.
-G
Yup that works great now, thanks Genete (and Darth). I'm blown away by this script, it revolutionary. :D
stefman
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Post by stefman »

Hello, I just discovered this amazing topic.

And I would like to know:

Is the morph target feature of AS 6 an integrated version of the poses script???

stefman
User avatar
Blue
Posts: 157
Joined: Fri Jul 03, 2009 1:55 am
Location: Los Angeles
Contact:

Post by Blue »

No, if you've read this thread, I'd then read the manual regarding morph targets and you'll see they are quite different in their approach, but can attain sort of similar results. Should be able to Google for the manual.

And I'm not sure if this script will work in ASP6.
joelstoryboards.com - (WinXP SP3, ASP 6.1)
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

The AS 6 blend morphs is pretty cool but this script goes a bit further I think by using bones to control "mixing" poses which are key framed and can be adjusted at any time.

Talking with Genete about this the other day. I don't know if this works with 6 yet but the "pose" frames could be placed on negative frames using the sequencer. They can be slid back behind frame 0, "out of the way".

-vern
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Vern, is there any way to combine the bones position with the blend morph feature? It would be great to have both combined.
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

I'm probably going to regret mentioning this as I don't know when I'm going to have time to get back to it, but I'm working on a script that can difference blend together arbitrary length actions, using bones as morph dials to control the weight of each action.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Rudiger wrote:I'm probably going to regret mentioning this as I don't know when I'm going to have time to get back to it, but I'm working on a script that can difference blend together arbitrary length actions, using bones as morph dials to control the weight of each action.
Yiiippiieee!!! That's what I have been waiting for since the release of ASP6, beautiful!!! :D
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Rudiger wrote:I'm probably going to regret mentioning this as I don't know when I'm going to have time to get back to it, but I'm working on a script that can difference blend together arbitrary length actions, using bones as morph dials to control the weight of each action.
You have all my support on reusing any part of the poses script and for any help you need on the coding of the definitive script of the scripts.

-G
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Rudiger wrote:I'm probably going to regret mentioning this as I don't know when I'm going to have time to get back to it, but I'm working on a script that can difference blend together arbitrary length actions, using bones as morph dials to control the weight of each action.
Wow!
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

I played a little bit with the blend morph tool and came up with this rough ugly bodyturn:
http://www.youtube.com/watch?v=fm00_MqgsK0
It would be fantastic to control thoose morphed poses as you wish with just bones!!! and do it without opening the "Blend Morph" window.
Rudiger, does your thought about the blend morph mix script mean that it would be possible to also animate the bones, like Genetes "poses" script, that control the morphs?
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

selgin wrote:Vern, is there any way to combine the bones position with the blend morph feature? It would be great to have both combined.
I have looked at this possibility and don't see this happening right now in the current version. The problem is that points are being moved "explicitly" by the script. This over rides any direct bone control.

I may have mentioned this somewhere else but the only way this might work is by storing the bone's "point matrix" and "adding" that motion to the pose point motion.

When you use lua to control a point or a bone... nothing else works. No other fiddling or user interaction can move those points or bones because the script is saying "put this point RIGHT HERE DAMMIT!" ;)

Now having said that... I don't know "everything". There may still be a way to do this.

I was thinking possibly... applying the bone's "point matrix" AFTER the pose script... sort of... on top of it somehow. That might be easier than storing the data but may still need to run through all the points locations one by one and setting them... which might slow down performance.

I wish I could be cloned!!! ;)

p.s. Cloned... not "clowned"... clowns scare me.

-vern
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

ulrik wrote:I played a little bit with the blend morph tool and came up with this rough ugly bodyturn:
http://www.youtube.com/watch?v=fm00_MqgsK0
Nice little head and body turn, ulrik.
ulrik wrote: It would be fantastic to control thoose morphed poses as you wish with just bones!!! and do it without opening the "Blend Morph" window.
Rudiger, does your thought about the blend morph mix script mean that it would be possible to also animate the bones, like Genetes "poses" script, that control the morphs?
Yep, that's the plan. I imagine the steps for using it to be something like the following.
1. Create a bone layer as a sibling to the layer(s) you want to control and add the script to it.
2. Add an independent bone, pointing vertically upwards and name it after an action. Might make it so you can optionally include the name of the layer as well as the action.
3. At a certain frame, rotate the bone to the right to inject a positive delta of the action or to the left to inject a negative delta. I'm thinking of making vertically downwards be 100%, and you'll of course be able to go beyond that.

And that's it. I'll probably also write a script that lets you "bake in" your blended morphs to generate static keyframes and reset all of your morph dials. You could then can start the morph injection process once again, using the first one as a base.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Rudiger wrote:
ulrik wrote:I played a little bit with the blend morph tool and came up with this rough ugly bodyturn:
http://www.youtube.com/watch?v=fm00_MqgsK0
Nice little head and body turn, ulrik.
Thank you Rudiger :D
ulrik wrote: It would be fantastic to control thoose morphed poses as you wish with just bones!!! and do it without opening the "Blend Morph" window.
Rudiger, does your thought about the blend morph mix script mean that it would be possible to also animate the bones, like Genetes "poses" script, that control the morphs?
Yep, that's the plan. I imagine the steps for using it to be something like the following.
1. Create a bone layer as a sibling to the layer(s) you want to control and add the script to it.
2. Add an independent bone, pointing vertically upwards and name it after an action. Might make it so you can optionally include the name of the layer as well as the action.
3. At a certain frame, rotate the bone to the right to inject a positive delta of the action or to the left to inject a negative delta. I'm thinking of making vertically downwards be 100%, and you'll of course be able to go beyond that.

And that's it. I'll probably also write a script that lets you "bake in" your blended morphs to generate static keyframes and reset all of your morph dials. You could then can start the morph injection process once again, using the first one as a base.

It sounds great if this could be accomplished, I'm holding my thumbs.
Good luck and thanks once again!

Ulrik
Post Reply