kuroyume0161 opened this issue on Sep 28, 2004 ยท 4 posts
kuroyume0161 posted Tue, 28 September 2004 at 6:50 PM
Hey all, Have you ever noticed a second set of actors at the bottom of a pose file which represent those which are part of InkyChains? Instead of the usual "channels", they have "ikchannels". Is this Poser's way of handling IK chains depending on their state (On or Off) - so, if IK is enabled, it uses the ikchannels, otherwise the regular channels? A related question is this: If a Pose file contains values in regular channels that are IK values, must there be a corresponding: inkyChain blahblah { on } in the Figure section? Thanks, Kuroyume
C makes it easy to shoot yourself in the
foot. C++ makes it harder, but when you do, you blow your whole leg
off.
-- Bjarne
Stroustrup
Contact Me | Kuroyume's DevelopmentZone
lesbentley posted Wed, 29 September 2004 at 3:19 PM
I don't know much about this, but if you stripp out the normal part of the pose file and only leave the IK part, then applying the pose will only affect the figure if IK is turned on.
So the answer to your first question is almost "yes", except I think that Poser will always use the pose data in the "normal" first part of the file, but if IK is turned on, then the data applied by the first part will be overwritten by the second (ikchannels) part (I think).
I'm not sure I understand the second question.
Message edited on: 09/29/2004 15:21
kuroyume0161 posted Wed, 29 September 2004 at 3:52 PM
In reference to the second question: For instance, in CR2 files, rotation values specified in channels of actors who are in the IK chain differ depending on whether IK for the chain is enabled or not (as declared in the figure section). Does this carry over to Pose files? Must the IK chain state be given in order to determine if affected actors' values correspond to one or the other? Or will the IK chain state only be included if it is enabled (considered disabled by default)? Thanks, Kuroyume
C makes it easy to shoot yourself in the
foot. C++ makes it harder, but when you do, you blow your whole leg
off.
-- Bjarne
Stroustrup
Contact Me | Kuroyume's DevelopmentZone
lesbentley posted Thu, 30 September 2004 at 1:51 PM
When saving a pz2 the data for an IK chain will only be included if the IK for that chain was "on" when the pz2 was saved. When applying a pose that has IK chain data (ikchannels), the data for the IK chain will only be applied if that IK chain is already "on" in the figure, or if the pz2 is edited to turn the IK channel on. The relevant code to turn IK on in a pz3 is, for Posette:
figure
{
inkyChain rightArm
{
on
}
inkyChain leftArm
{
on
}
inkyChain rightLeg
{
on
}
inkyChain leftLeg
{
on
}
}
For Victoria 2 Use "RightLeg" (upper case "R") etc. This code should probably go in the last figure block, it does not seem to matter that the code to turn IK on comes after the channel data.