Forum: Poser Technical


Subject: Is there a way to 'smartprop' a figure?

ockham opened this issue on Aug 07, 2007 · 41 posts


lesbentley posted Wed, 08 August 2007 at 6:10 PM

@Cage,

First thing to remember when applying a pose to a prop (or light, or camera) is that there must be a figure in the document.

With respect to 'objFileGeom' in props, you should be able to inject multiple geometry references (paths) from one pz2. At least I have never run into problems myself. The most I have ever injected is three. I tend to leave  actor numbers out of poses, so in your example I would have used "actor hair" not "actor hair:3", not sure if it make a diffrence here though.

If you have an example of something that does not work, I would be interested to have a look.

Try this. Load two Poser square props(not onesided), and one cone prop. Load a figure, then try these two poses:

{
//swapped.pz2
version
 {
 number 4.01
 }
actor cone_1
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:square.obj
 }
actor square_1
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:cone.obj
 }
actor square_2
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:cone.obj
 }

figure
 {

 }
}


{
//restored.pz2
version
 {
 number 4.01
 }
actor cone_1
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:cone.obj
 }
actor square_1
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:square.obj
 }
actor square_2
 {
 storageOffset 0 0.3487 0
 objFileGeom 0 0 :Runtime:Geometries:props:square.obj
 }

figure
 {

 }
}

Note that I use "actor propName" not "prop propName" in the poses, this allows me to apply the poses to the props even if the props are not parented to a figure. If the props are paerented to a figure "prop propname" should work fine.

As I said in a previous post, remember that Poser increments the prop name with a number in each new instance. A pose for "square_2" will not work on "square_1". If this becomes a problem, remember that in P5 and up you can use 'actor $CURRENT' to apply a pose to the currently selected item.

Geometry injection also works with 'geomCustom'. If I remember right, you can mix and match  'geomCustom' and 'objFileGeom', applying a 'objFileGeom' pose to a prop that uses 'geomCustom' and vis versa. An empty 'geomCustom' will clear the geometry from a prop.

I can't advise on geom injection with 'figureResFile', perhaps I will have a look at that in the nex few days.