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.
Hi all,
I released a product 10 days ago at DAZ which uses Readscript in a .pz2 to call a python script. The script poses objects by a set distance, moving them the same amount each time its applied.
I got a mail from a customer saying it doesn't work in PoserPro 2010. The poses appear to load, but nothing happens. He says that running the python scripts does work, so I'm not sure what's going on.
Here's a .pz2 and python sample
{
version
{
number 6
}
}
{
version
{
number 6
runPythonScript ":Runtime:Python:poserScripts:Corridors:move600Zpos.py"
}
}
import poser
scene = poser.Scene()
JumpSize=2.46063 # in PU
actor= poser.Scene().CurrentActor()
param=actor.ParameterByCode(poser.kParmCodeZTRAN)
param.SetValue(param.Value()+JumpSize)
poser.Scene().DrawAll()
------------------
Does anyone have a clue why this wouldn't work in PP2010? If he can run the python scripts on their own, I'm assuming the problem is elsewhere, but maybe that's a bad assumption?
TIA
mac