Thu, Feb 13, 3:12 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: MovieMaker Methods


minuitdixhuit ( ) posted Sat, 27 June 2020 at 6:23 AM · edited Wed, 12 February 2025 at 11:42 PM

Hello, Does anyone know how to use the "MovieMaker Methods"? The manual doesn't say much about it and the examples don't work for me. Furthermore, "SetMovieFormat" refers to "OutputFormats" for explanations and "OutputFormats" refers to "SetMovieFormat" ... I'm trying to write a batch to produce small mp4s to find my way through the many BVH, FBX and Aniblocks animation files I have without knowing what they produce. Sincerely,

Bonjour, Est-ce que quelqu’un sait utiliser les « MovieMaker Methods ». Le manuel ne dit pas grand-chose et les exemples ne fonctionnent pas chez moi. De plus « SetMovieFormat » renvoie à « OutputFormats » pour des explications et « OutputFormats » renvoie à « SetMovieFormat » … Je cherche à écrire un batch pour produire des petits mp4 pour m’y retrouver dans les nombreux fichier BVH, FBX et Aniblocks d’animation que je possède sans savoir qu’est-ce qu’ils donnent. Cordialement,

Hallo, Weiß jemand, wie man die „MovieMaker Methods“ verwendet? Das Handbuch sagt nicht viel und die Beispiele funktionieren bei mir nicht. Außerdem verweist „SetMovieFormat“ auf „OutputFormats“ für Erklärungen und „OutputFormats“ verweist auf „SetMovieFormat“ ... Ich versuche, einen Batch zu schreiben, um kleine mp4s zu produzieren, um mich in den vielen BVH-, FBX- und Aniblocks-Animationsdateien, die ich habe, zurechtzufinden, ohne zu wissen, was sie hervorbringen. Mit freundlichen Grüßen,

Olá, Alguém sabe como utilizar os "MovieMaker Methods"? O manual não diz muito e os exemplos não funcionam para mim. Além disso, "SetMovieFormat" remete para "OutputFormats" para explicações e "OutputFormats" remete para "SetMovieFormat" ... Estou a tentar escrever um batch para produzir pequenos mp4s para poder-me orientar entre os numerosos ficheiros de animação BVH, FBX e Aniblocks que tenho sem saber no que vão resultar. Cordialmente,


adp001 ( ) posted Sat, 27 June 2020 at 7:27 AM
sc=poser.Scene()
mm=sc.MovieMaker()
print mm.OutputFormats()

['Image Files', 'Flash', 'MP4 (H.264-AAC)', 'iPhone Movie (480x320)', 'iPhone 4 Movie (960x640)', 'iPhone 5 Movie (1136x640)', 'iPad Movie (1024x768)', 'iPad HD Movie (1280x1024)', 'Android Movie (480x360)', 'Android HD Movie (1280x1024)', 'AVI (MJPEG)', 'AVI (DV)', 'AVI (Uncompressed)', 'WMV/ASF (Medium Quality)', 'WMV/ASF (High Quality)', 'WMV/ASF (uncompressed)']


AVI_MJPEG = mm.OutputFormats().index("AVI (MJPEG)")
mm.SetMovieFormat(AVI_MJPEG)




adp001 ( ) posted Sat, 27 June 2020 at 7:54 AM · edited Sat, 27 June 2020 at 7:58 AM

If you like to set global names, try this:

def globalMoviemakerNames(mm):
    for idx, name in enumerate(mm.OutputFormats()):
        name = re.sub("[ /]+", "_", name)
        name = re.sub("[().-]+", "", name).upper()
        globals()[name] = idx
        print "%d = %s" % (idx, name)

globalMoviemakerNames(poser.Scene().MovieMaker())

prints:

0 = IMAGE_FILES
1 = FLASH
2 = MP4_H264AAC
3 = IPHONE_MOVIE_480X320
4 = IPHONE_4_MOVIE_960X640
5 = IPHONE_5_MOVIE_1136X640
6 = IPAD_MOVIE_1024X768
7 = IPAD_HD_MOVIE_1280X1024
8 = ANDROID_MOVIE_480X360
9 = ANDROID_HD_MOVIE_1280X1024
10 = AVI_MJPEG
11 = AVI_DV
12 = AVI_UNCOMPRESSED
13 = WMV_ASF_MEDIUM_QUALITY
14 = WMV_ASF_HIGH_QUALITY
15 = WMV_ASF_UNCOMPRESSED

print AVI_MJPEG

10




adp001 ( ) posted Sat, 27 June 2020 at 8:27 AM

Bildschirmfoto vom 2020-06-27 15-20-12.png

def MovieMakerFileSelection(mm):
    assert isinstance(mm, poser.MovieMakerType)

    choices = mm.OutputFormats()
    with wx.SingleChoiceDialog(None,
                               caption="Moviemaker Filetypes",
                               message="Select one",
                               choices=choices,
                               style=wx.CHOICEDLG_STYLE
                               ) as dlg:
        if dlg.ShowModal() == wx.ID_OK:
            return dlg.GetSelection()
        else:
            return None


format = MovieMakerFileSelection(mm)
if format:
    mm.SetMovieFormat(format)




minuitdixhuit ( ) posted Sun, 28 June 2020 at 3:36 AM · edited Sun, 28 June 2020 at 3:40 AM

Muito obrigado!*

  • Vielen Dank!
  • Merci beaucoup!
  • Thank you very much!


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.