Medzinatar opened this issue on May 26, 2006 · 8 posts
dburdick posted Fri, 07 March 2008 at 2:23 AM
Oops,
I copied some errant code for the Python Script. Here's the correct one:
import poser
ArgList = 0
try:
Args = poser.Scene().ActorByInternalName("GROUND")# Get Ground Actor
if Args.Name().startswith("PYT"): # Parse if it starts with PYT prefix
ArgList = Args.Name().split("_") # Split argument params
ArgList.remove("PYT") # Remove the dummy prefix from the ArgList
Args.SetName("GROUND") # Rename the Ground actor back to its original Name
except:
pass # No ground actor object found in scene
if ArgList:
print ArgList