Forum: Poser - OFFICIAL


Subject: JCM..is it possible

Karth opened this issue on Jun 24, 2012 · 4 posts


lesbentley posted Sun, 24 June 2012 at 10:49 AM

Let me see if I understand you correctly.

You have a hair figure with three body handles. This figure has an actor named 'head'. The head actor has a morph. You want to make a pz2 (pose) to inject slaving code so that when you change the value of a dial in one of the body handles the morph will be expressed. Have I got the story straight? If so try this:

{

version
    {
    number 3
    }

actor head
    {
    channels
        {
        rotateY yrot
            {
            valueOpDeltaAdd
                Figure
                NameOfActor
                NameOfChannel
            deltaAddDelta 1.000000
            }
        }
    }
}

Where 'rotateY yrot' is the channel you are injecting into, 'NameOfActor' is the internal name of the body handle, and 'NameOfChannel' is the name of the channel in the body handle that you want the morph to respond to. The value in the 'deltaAddDelta' line determines the strength of the slaving. With the default value of 1, an increment of 1 in the master channel will produce an increment of 1 in the slave channel. A value of 0.5 would require an increment of 2 in the master channel to produce an increment of 1 in the slave channel, etc.

For example, to slave a morph named 'Smooth' to the 'yrot' channel of a body handle named 'handle1', you would use the following pz2 file:

{

version
    {
    number 3
    }

actor head
    {
    channels
        {
        rotateY yrot
            {
            valueOpDeltaAdd
                Figure
                handle1
                Smooth
            deltaAddDelta 0.050000
            }
        }
    }
}

Note that the names are case sensitive.

If editing the code directly into the hair cr2 (instead of injecting it), you would use the same code, except that you should add the figure number used in the rest of the cr2 to the code, eg:

            valueOpDeltaAdd
                Figure 1
                handle1:1
                Smooth
            deltaAddDelta 0.050000