Forum: Poser Python Scripting


Subject: Hidden an actor

minuitdixhuit opened this issue on Jun 30, 2020 · 11 posts


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