lesbentley opened this issue on Mar 31, 2008 ยท 137 posts
lesbentley posted Tue, 01 April 2008 at 1:02 AM
Generic Pose files using "actor $CURRENT".- - - - - -
In P5 and up you can make a generic pz2 that will apply whatever settings it contains to the currently selected body part, prop, light, camera, magnet, or anything else you can think of. This is done by using the "actor $CURRENT" statement. This statement can only work on one actor at a time. Below is an example of using "actor $CURRENT" to change the Display Style of the currently selected actor to Outline Display Style: {
version
{
number 5
}
actor $CURRENT
{
displayMode EDGESONLY
}
}
The types of displayMode are:
EDGESONLY (Outline)
WIREFRAME (Wireframe)
HIDLINE (Hidden Line)
SHADEDOUTLINE (Lit Wireframe)
FLATSHADED (Flat Shaded)
FLATLINED (Flat Lined)
CARTOONNOLINE (Cartoon) SKETCHSHADED(Cartoon w/Line)
SHADED (Smooth Shaded)
SMOOTHLINED (Smooth Lined)
TEXTURESHADED (Texture Shaded)
USEPARENT (This is the default style)
"actor $CURRENT" is not limited to displayMode, you can use it with almost any type of pose, so long as you only need to affect one actor at a time.
A generic pose to scale the selected actor to 200%: {
version
{
number 5
}
actor $CURRENT
{
channels
{
scale scale
{
keys
{
k 0 2
}
}
}
}
}
Make selected actor INVISIBLE: {
version
{
number 5
}
actor $CURRENT
{
off
}
}
The file to make the actor visible is exactly the same, except it uses "on" in place of "off" - - - - - -
Lock selected actor: {
version
{
number 5
}
actor $CURRENT
{
locked 1
}
}
The pz2 file to unlock actor is exactly the same, except it uses "locked 0" in place of "locked 1". - - - - - -
NOTES:
All the pose files above in this post can be used on figures or props, but remember that if you want to pose a prop when there is no figure in the scene you will have save the file to a camera folder and give it a cm2 file extension, the same goes if you want to apply it to a light or camera when there is no figure present. Remember "actor $CURRENT" only works in P5 or above, it will not work in P4.