Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
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.
from: PoserPython Methods.pdf - page 27
actor = scene.Actor(“Left Forearm”)
mycode:
import poser
scene = poser.Scene()
actor = scene.CurrentActor()
print('CurrentActor: ' + actor.Name() + ' ', actor )
actor = scene.Actor(“Main Camera”) <-------------------fails here
print('CurrentActor: ' + actor.Name() + ' ', actor )
aActors= scene.Actors()
print('actors: ')
for oActor in aActors:
print(oActor.Name())
result:
sys:1: DeprecationWarning: Non-ASCII character 'x93' in file
D:poserpythonsetActor.py on line 5, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
File "D:poserpythonsetActor.py", line 5
actor = scene.Actor(“Main Camera”)
^
SyntaxError: invalid syntax
(original message points to 'e.' in case your formatting is different)
I would very much appreciate getting a handle on this.