Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 18 10:25 pm)
..... or simply open Poser 7RuntimeLibrariesCharacterPoser 1-5Poser 2 LoCasual Man P2 Lo.cr2 in CR2Editor, select the hand and look for:-
alternateGeom rHand_2
{
name GetStringRes(1037,2)
objFile 2002 :Runtime:Geometries:maleHandsLo:rHandShape_2.obj
}
and in the hand channels:-
geomChan handGeom
{
uniqueInterp
name hand type
initValue 0
hidden 0
forceLimits 4
min 0
max 19
trackingScale 0.045
keys
{
static 0
k 0 0
}
interpStyleLocked 1
}
Use these lines as patterns for your figure.
Basically you have a series of 'alternateGeom' blocks defining the paths to the alternate geometry files, then a 'geomChan' channel to do the actual switching.
The 'usemtl' defined in the obj files need to have matching 'material' statements in the 'figure' section of the cr2.
Below is an example of geometry switching for the head. Attached above is the text of a working example. Note that the attached example uses a Poser box prop as the default head, loaded via "objFileGeom", so as not to need to distribute an obj file with this example. Normally the default geometry would be loaded by a "figureResFile" statement.
actor head:1
{
<span style="color:rgb(153,153,153);"> name head<br></br> on<br></br> bend 1<br></br> dynamicsLock 1<br></br> hidden 0<br></br> addToMenu 1<br></br> castsShadow 1<br></br> includeInDepthCue 1<br></br> useZBuffer 1<br></br> parent BODY:1<br></br> creaseAngle 80</span>
alternateGeom head_2
{
objFile 1002 :Runtime:Geometries:props:ball.obj
}
alternateGeom head_3
{
objFile 1003 :Runtime:Geometries:props:cone.obj
}
alternateGeom head_4
{
objFile 1004 :Runtime:Geometries:props:cylTex.obj
}
channels
{
geomChan HeadSwap
{
uniqueInterp
name New Head
initValue 0
hidden 0
forceLimits 4
min 0
max 4
trackingScale 0.045
keys
{
static 0
k 0 0
}
interpStyleLocked 1
}
The 'max' value in the 'geomChan' needs to be the number of geometries used including the default geometry. The syntax I have used differs a little from that used in the skeleton figure, in that it simplifies by leaving the 'name' lines out, but it works just as well.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Does anyone have or know of any tuts about geometry switching? Been trying all morning to find one but to no avail. Cant find anything in the manual either.