Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 10 10:34 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
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.
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