xantor opened this issue on Jan 12, 2008 ยท 48 posts
lesbentley posted Mon, 14 January 2008 at 1:11 PM
@ xantor,
Quote: "If the figure combining could be automated using python or some other way then it could actually be quite useful."
You can do the figure combining as a two step process, using a special cr2 or pp2 to inject the new actors, then a pz2 to inject the welds, material settings, and any other stuff needed in the 'figure' block.
Ok, so how do we inject the actors? We need a special cr2 (or pp2). What makes it special is that it can't contain a 'figure' block, other wise it becomes a normal cr2, and won't inject anything. The other things it needs is to use 'smartparent' in place of 'parent' in the partenting lines, and it needs a 'doc' block listing the actors. The file should not contain the colon actor number (:1).
I have attached the text of such a cr2 above. I had to strip out the geometry from the 'geomCustom' blocks because of copyright considerations. Below is the text of the pz2 to add stuff to the 'figure block, note that the empty declarations are nessary necessary for the welds to work. The files would, if they included geometry, add the P4 Biker Shorts to the P4 Nude Woman (Posette) figure as extra body parts.
{
//INJ_figStuff.pz2
version
{
number 3
}
actor hip_B
{
}
actor abdomen_B
{
}
actor lThigh_B
{
}
actor rThigh_B
{
}
figure
{
weld abdomen_B
hip_B
weld lThigh_B
hip_B
weld rThigh_B
hip_B
material shorts
{
KdColor 1 1 1 1
KaColor 0 0 0 1
KsColor 0 0 0 1
TextureColor 1 1 1 1
NsExponent 30
tMin 0
tMax 0
tExpo 0.6
bumpStrength 1
ksIgnoreTexture 0
reflectThruLights 1
reflectThruKd 0
textureMap "GetStringRes(1029,7)"
0 0
bumpMap NO_MAP
reflectionMap NO_MAP
transparencyMap NO_MAP
ReflectionColor 1 1 1 1
reflectionStrength 1
}
}
}