Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
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
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.
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.
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
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.
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.
############################## 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
I understand the use case on this. You want to reduce the total number of items displayed on the animation palette.
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.
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.
Hello, Does anyone know the Poser python method for setting the "hidden" parameter of an "actor" to 0 or 1? Please note!
prop Box : 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!
prop Box : 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 !
prop Box : 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!
prop Box : 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.