Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
Heheh. You have a little bit of extra, unnecessary code there. The expression
scene.Figure( figure.Name() )
is just going to give you back what you already have in figure, which is the currently selected figure.
As well, doing
scene.SelectFigure( scene.Figure( figure.Name() ) )
is just selecting the figure that is already selected.
That whole line doesn't do anything at all.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)
bagginsbill posted at 8:49AM Sat, 03 June 2017 - #4306493
Heheh. You have a little bit of extra, unnecessary code there. The expression
scene.Figure( figure.Name() )
is just going to give you back what you already have in figure, which is the currently selected figure.
As well, doing
scene.SelectFigure( scene.Figure( figure.Name() ) )
is just selecting the figure that is already selected.
That whole line doesn't do anything at all.
Thanks Ted.
ironsoul posted at 8:49AM Sat, 03 June 2017 - #4306525
Structure posted at 5:51PM Fri, 02 June 2017 - #4306486
try this
# -*- coding: utf-8 -*- import poser scene = poser.Scene() figure = scene.CurrentFigure() scene.SelectFigure( scene.Figure( figure.Name() ) ) if figure: poser.ProcessCommand( 1568 )
Perfect, thank you.
You're Welcome.
Locked Out
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.
Hi Is there a way to duplicate an existing figure + child objects in a scene using the Python API, I can only see delete figure in the documentation.