Wed, Feb 12, 11:27 PM 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: Hidden an actor


minuitdixhuit ( ) posted Tue, 30 June 2020 at 8:35 AM · edited Wed, 12 February 2025 at 11:19 PM

Hello, Does anyone know the Poser python method for setting the "hidden" parameter of an "actor" to 0 or 1? Please note!

  • I'm not talking about the on/off parameter that allows to see or hide an "actor".
  • I'm not talking about the "hidden" parameter of a channel that allows to hide or show it. I'm talking about the "actor" parameter:

prop Box : 1

{

name    Box_1

on

bend 1

animatableOrigin 0

animatableOrientation 0

dynamicsLock        1

hidden      0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This one

addToMenu   1
…

I wrote a program in VBasic that allows me to modify it, but then I have to close the scene, open it with my program, modify it, save it and reload it in Poser. It would be easier with a python script.

This allows me to have a more practical vision of the awful "animation palette" to develop an animation without being hindered by the presence of the other actors.

Yours sincerely.

PS: my little program is available for those who would consider it useful.

DE

Hallo, Kennt jemand die Poser-Python-Methode, um den „hidden“ Parameter eines „actor“ auf 0 oder 1 zu setzen? Achtung!

  • Ich spreche nicht von dem on/off Parameter, der es erlaubt, einen „actor“ zu sehen oder zu verstecken.
  • Ich spreche nicht von dem „hidden“ Parameter eines „Channel“, der es erlaubt, ihn zu verstecken oder anzuzeigen. Ich spreche hier vom Parameter „actor“:

prop Box : 1

{

name    Box_1

on

bend 1

animatableOrigin 0

animatableOrientation 0

dynamicsLock        1

hidden      0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< dieser

addToMenu   1

…

Ich habe ein Programm in VBasic geschrieben, das mir erlaubt, es zu modifizieren, aber dann muss ich die Szene schließen, diese mit meinem Programm öffnen, modifizieren, speichern und dann in Poser neu laden. Mit einem Python-Skript wäre das einfacher.

Dies ermöglicht mir eine praktischere Sicht auf die schreckliche „animation palette“, um eine Animation zu entwickeln, ohne durch die Anwesenheit der anderen Akteure behindert zu werden.

Mit freundlichen Grüßen.

PS: Mein kleines Programm steht für diejenigen zur Verfügung, die es als nützlich erachten würden.

Bonjour, Est-ce que quelqu’un connait la méthode Poser python pour mettre à 0 ou à 1 le paramètre « hidden » d’un « actor ». Attention !

  • Je ne parle pas du paramètre on/off qui permet de voir ou de cacher un « actor ».
  • Je ne parle pas du paramètre « hidden » d’un channel qui permet de le cacher ou de le montrer. Mais bien de celui d’un « actor » :

prop Box : 1

{

name    Box_1

on

bend 1

animatableOrigin 0

animatableOrientation 0

dynamicsLock        1

hidden      0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< celui-là

addToMenu   1

…

J’ai écrit un programme en VBasic qui me permet de le modifier, mais il me faut alors fermer la scène, l’ouvrir avec mon programme, la modifier, l’enregistrer puis la recharger dans Poser… Ce serait plus simple avec un python script.

Ceci me permet d’avoir une vision plus pratique de l’épouvantable « animation palette » pour mettre au point une animation sans être gêné par la présence des autres acteurs. Cordialement. PS : mon petit programme est disponible pour ceux qui en verraient l’utilité.

PT

Olá, Alguém conhece o método Poser python para definir o parâmetro "escondido" de um "actor" para 0 ou 1? Atenção!

  • Não estou a falar do parâmetro on/off que permite ver ou esconder um "actor".
  • Não estou a falar do parâmetro "hidden" de um “channel” que permite escondê-lo ou mostrá-lo. Estou a falar do parâmetro "actor":

prop Box : 1

{

name    Box_1

on

bend 1

animatableOrigin 0

animatableOrientation 0

dynamicsLock        1

hidden      0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< trata-se deste

addToMenu   1

…

Escrevi um programa em VBasic que me permite modificá-lo, mas neste caso, tenho de fechar a cena, abri-la com o meu programa, modificá-la, guardá-la e seguidamente recarregá-la no Poser. Seria mais fácil com um script python.


structure ( ) posted Tue, 30 June 2020 at 9:25 AM · edited Tue, 30 June 2020 at 9:25 AM
Forum Coordinator
Hello, Does anyone know the Poser python method for setting the "hidden" parameter of an "actor" to 0 or 1? Please note!

I'm not talking about the on/off parameter that allows to see or hide an "actor".

I'm not talking about the "hidden" parameter of a channel that allows to hide or show it. I'm talking about the "actor" parameter:

=======================================================

Hi, your question is unclear as to what you're actually asking

I assume this is not what you're after?

actor.SetVisible(not actor.Visible()) will toggle the actors visibility

actor.SetVisible(True) will show the actor

actor.SetVisible(False) will hide the actor

Locked Out


VedaDalsette ( ) posted Tue, 30 June 2020 at 11:43 AM · edited Tue, 30 June 2020 at 11:49 AM

This is in PhilC's Python for Poser 8 manual under Actor Methods.

OnOff()

actor.OnOff()

Returns the current display status of this actor. 1 for visible, 0 for hidden.

SetOnOff(toggle)

actor.SetOnOff(1)

Toggles the actor's visibility. Set to 1 for visible, set to 0 for hidden.

And this under Figure Methods.

SetVisible(toggle)

figure.SetVisible(1)

With toggle = 1 the figure is visible, toggle = 0 the figure is hidden. It is suggested that you should use this method rather than SetOnOff



W11,Intel i9-14900KF @ 3.20GHz, 64.0 GB RAM, 64-bit, GeForce GTX 4070 Ti SUPER, 16GB. 

Old lady hobbyist. All visual art or fiction is "playing with dolls."

VISIT MY ALBUMSFOR COMICS: https://www.renderosity.com/users/VedaDalsette/gallery/albums

You can also get to my comics from my book website: https://www.vdbooks.com.


VedaDalsette ( ) posted Tue, 30 June 2020 at 11:51 AM

And this is in PhilC's manual under Parameter Methods.

Hidden()

parameter.Hidden()

Returns 1 if the parameter dial is hidden, 0 if visible.

SetHidden(toggle)

parameter.SetHidden(1)

Set the toggle to 1 to hide the parameter dial and 0 to keep it visible.



W11,Intel i9-14900KF @ 3.20GHz, 64.0 GB RAM, 64-bit, GeForce GTX 4070 Ti SUPER, 16GB. 

Old lady hobbyist. All visual art or fiction is "playing with dolls."

VISIT MY ALBUMSFOR COMICS: https://www.renderosity.com/users/VedaDalsette/gallery/albums

You can also get to my comics from my book website: https://www.vdbooks.com.


minuitdixhuit ( ) posted Tue, 30 June 2020 at 1:36 PM · edited Tue, 30 June 2020 at 1:38 PM

Sorry if I didn't make myself clear. Maybe my English is bad. I prefer Portuguese, German or French... "Setvisible" is not suitable. This "method" makes an actor physically visible or invisible (on/off in the PZ3 file). As described in the previous message, I want to set the "hidden" parameter of the actor to 0 so that it is no longer in the "Animation palette" list and thus make it easier to work with. I know how to do it in a PZ3 file with a VBasic program, but I can't do it with a python script because I couldn't find the corresponding instruction in the manual. Best regards

Entschuldigung, wenn ich mich nicht klar ausgedrückt habe. Vielleicht ist mein Englisch schlecht. Ich bevorzuge Portugiesisch, Deutsch oder Französisch... „Setvisible“ ist nicht geeignet. Diese „Method“ macht einen „Actor“ physisch sichtbar oder unsichtbar (on/off in der PZ3-Datei). Wie in der vorhergehenden Nachricht beschrieben, möchte ich den Parameter „hidden“ des Akteurs auf 0 setzen, damit er nicht mehr in der Liste „Animation palette“ erscheint und diese somit einfacher zu verarbeiten zu machen. Ich weiß, wie man es in einer PZ3-Datei mit einem VBasic-Programm macht, aber ich weiß nicht, wie man es mit einem Python-Skript macht, weil ich die entsprechende Anleitung im Handbuch nicht finden konnte. Mit freundlichen Grüßen

Désolé si je n’ai pas éte clair. Peut-être mon Anglais est-il mauvais. Je préfère le Portugais, l’Allemand ou le Français… «Setvisible» ne convient pas. Cette « method » rend visible ou invisible physiquement un acteur. (on/off dans le fichier PZ3) Je veux mettre le paramètre «hidden» de l’acteur comme décrit dans le précédent message à la valeur 0 de manière à ce qu’il ne figure plus dans la liste de «Animation Palette» et ainsi la rendre plus facile à travailler. Je sais le faire dans un fichier PZ3 avec un programme en VBasic, mais je ne sais pas le faire avec un script python car je n’ai pas trouvé l’instruction correspondante dans le manuel. Cordialement

Desculpe se não me fiz entender. Talvez o meu inglês seja mau. Prefiro o português, o alemão ou o francês... "Setvisible" não convém. Este "method" torna um actor fisicamente visível ou invisível (on/off no ficheiro PZ3). Conforme descrito na mensagem anterior, quero definir o parâmetro "hidden" do actor para valor 0, de maneira a que deixe de constar na lista "Animation palette" para torná-la mais fácil de trabalhar. Sei como fazê-lo num ficheiro PZ3 com um programa VBasic, mas não sei fazê-lo com um script python porque não consegui encontrar a instrução correspondente no manual. Com os melhores cumprimentos


VedaDalsette ( ) posted Tue, 30 June 2020 at 4:24 PM

I thought that's what Parameter.HIdden() might do. Oh, well, gave it a shot. Good luck.



W11,Intel i9-14900KF @ 3.20GHz, 64.0 GB RAM, 64-bit, GeForce GTX 4070 Ti SUPER, 16GB. 

Old lady hobbyist. All visual art or fiction is "playing with dolls."

VISIT MY ALBUMSFOR COMICS: https://www.renderosity.com/users/VedaDalsette/gallery/albums

You can also get to my comics from my book website: https://www.vdbooks.com.


adp001 ( ) posted Wed, 01 July 2020 at 12:01 PM

Poser comes with a manual. Even for Poser Python.

actor.SetVisible(True|False)

"Hidden" is not reachable via Python. Not in an actor, also not in a parameter.




adp001 ( ) posted Wed, 01 July 2020 at 12:55 PM

VedaDalsette posted at 7:51PM Wed, 01 July 2020 - #4393495

And this is in PhilC's manual under Parameter Methods.

Hidden()

parameter.Hidden()

Returns 1 if the parameter dial is hidden, 0 if visible.

SetHidden(toggle)

parameter.SetHidden(1)

Set the toggle to 1 to hide the parameter dial and 0 to keep it visible.

PhilC's book is probably massively outdated. Some things are still as they were, but much of Poser Python has changed over time. Not only the syntax, but also functions have been dropped and others have been added.




minuitdixhuit ( ) posted Wed, 01 July 2020 at 4:09 PM

############################## import poser

def HIDDEN(): scene = poser.Scene() hipactor = scene.Actor("Hip")

hipactor.SetOnOff(0)
#hipactor.SetVisible(1)
#hipactor.SetHidden(1)

#MAIN PROGRAMME

HIDDEN() #############################

Hello, Unfortunately, these hints are not the right ones. I'm looking for an "Actor Method". I'm not looking for a "Figure Method" nor a "Parameter Method".

SetOnOff() and SetVisible() seem to give the same result: the "physical" visibility of the actor on the scene. hipactor.SetHidden(1) returns an error message: "AttributeError: 'Actor' object has no attribute 'SetHidden'".

I'm trying to remove the actor's name from the list of actors present in the "Animate Palette". I know how to do it by directly modifying the .CR2 or .PZ3 file with a text editor or a VBasic program. My problem is that I don't know how to do it with a python script.

Best regards

Hallo, Leider sind diese Hinweise nicht die richtigen. Ich suche nach einer „Actor Method“. Ich suche nicht nach einer „Figure Method“ oder einer „Parameter Method“.

SetOnOff() und SetVisible() scheinen zum gleichen Ergebnis zu führen: die „physische“ Sichtbarkeit des Actors auf der Szene. hipactor.SetHidden(1) gibt eine Fehlermeldung zurück: „AttributeErro: 'Actor' object has no attribute 'SetHidden' “ Ich versuche, den Namen des Actors aus der Liste der in der „Animate Palette" anwesenden Actors zu entfernen. Ich weiß, wie man das macht, indem man die .CR2 oder .PZ3-Datei direkt mit einem Texteditor oder einem VBasic-Programm modifiziert. Mein Problem ist, dass ich nicht weiß, wie ich es mit einem Python-Skript machen kann.

Mit freundlichen Grüßen

Bonjour, Malheureusement, ces pistes ne sont pas les bonnes. Je cherche une «Actor Method». Je ne cherche pas une «Figure Method» ni une «Parameter Method».

SetOnOff() et SetVisible() semblent donner le même résultat : la visibilité «physique» de l’acteur sur la scène. hipactor.SetHidden(1) retourne un message d’erreur : «AttributeError: 'Actor' object has no attribute 'SetHidden'»

Je cherche à supprimer le nom de l’acteur de la liste des acteurs présents dans la «Animate Palette». Je sais le faire en modifiant directement le fichier .CR2 ou .PZ3 avec un éditeur de texte ou un programme en VBasic. Mon problème est que je ne sais pas le faire avec un script python.

Cordialement.

Olá, Infelizmente, estas pistas não são as correctas. Estou à procura de um "Actor Method". Não estou à procura de um "Figure Method" nem de um "Parameter Method".

SetOnOff() e SetVisible() parecem dar o mesmo resultado: a visibilidade "física" do actor no palco. hipactor.SetHidden(1) devolve uma mensagem de erro : «AttributeError: 'Actor' object has no attribute 'SetHidden'».

Procuro suprimir o nome do actor da lista de actores presentes na "Animate Palette". Sei como fazê-lo ao modificar directamente o ficheiro .CR2 ou .PZ3 com um editor de texto ou um programa em VBasic. O meu problema é que não sei como fazê-lo com um python script.

Com os melhores cumprimentos


tsoren ( ) posted Sat, 04 July 2020 at 3:53 PM · edited Sat, 04 July 2020 at 3:57 PM

I understand the use case on this. You want to reduce the total number of items displayed on the animation palette.

image.png

It appears to be an issue with how the animation palette works. The Left Foot entry will still display in the Hierarchy window as seen in the right side of the above image. It will also display in the Animation Palette windows.

Hiding a parameter will hide it from the animation palette. Hiding an actor will not hide it from the animation palette.

I hid all the parameters of Left Foot and then I hid Left Foot itself. The result I got is shown in the image above.


tsoren ( ) posted Sat, 04 July 2020 at 4:00 PM

Maybe this can be a feature request for the animation palette.


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.