Mon, Feb 10, 5:45 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 10 10:34 am)



Subject: Python poser.Scene.LoadLibraryFace(.fc2??) method


Pertial ( ) posted Thu, 07 April 2005 at 8:40 AM · edited Mon, 10 February 2025 at 6:43 AM

It is documented to take an argument, namely
the file name of an ".fc2" file.

But I can't find a file with type ".fc2" anywhere???

I find a lot of ".fcz" files, which seems like what
the Scene.LoadLibraryFace() method should take,
but when I:

poser.Scene.LoadLibraryFace("RuntimelibrariesFaceP4
PhonemesAre.fcz")

Results in: SyntaxError: invalid syntax

I'm doing this to a P4 woman's head, that in the GUI,
allows setting the P4 Phoneme -- "Are" .

When I search the CuriousLabs website there are no hits for "fcz"
and only a few for "fc2" in license agreements where file types
are mentioned, but again, the actual file type seems to be fcz, no fc2.

How can I load these facial expressions using Python?

I'm trying to script the render and save of the full set
of phoneme expressions (for any particular pose), which should be
very easy, except this method (and documentation) seems
to have problems.

(..or is there something fundamentally wrong with my Python syntax?)

Tom


spedler ( ) posted Thu, 07 April 2005 at 9:16 AM

.fcz is a compressed face file. You can unzip them using Winzip to get .fc2 files.

Steve


Pertial ( ) posted Thu, 07 April 2005 at 10:22 AM

Thanks, That is helping. :) Plus my syntax has trouble. Thanks again.


ockham ( ) posted Thu, 07 April 2005 at 11:48 AM · edited Thu, 07 April 2005 at 11:52 AM

I can see one basic problem: the backslashes
in your filenames. You need to write those
as double backslashes in order for Python to
read them properly.

Also, the Scene is a function, so it needs
parentheses. It's generally easier, and
sort of standard, to get a simple variable
for Scene first:

scene=poser.Scene()
scene.LoadLibraryFace("RuntimelibrariesFaceP4
PhonemesAre.fcz")

Edit: The compression isn't the trouble. LoadLibraryFace will load the FCZ files just fine. (I just checked this to be sure!)

Message edited on: 04/07/2005 11:52

My python page
My ShareCG freebies


Privacy Notice

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.