Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
You can't do it directly akaik, but you could do something like this:
Check if actor points at something with poser.Scene().CurrentActor().ParameterByCode(poser.kParmCodePOINTAT)
Get WorldQuaternion
move all other actors in the scene and compare WorldQuaternion, move actors back in place...
Rather ugly approach I guess ;-)
You could also try getting the world displacement for all of the actors in the scene, then compare the vector between each of these and the pointed actor to the orientation vector of the pointed actor, found along the axis between its origin and endpoint. Unfortunately this can only identify good candidates for point at target, because it can't differentiate between actors which might line up along that same vector.
So I think Dizzi has the best idea. :laugh:
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
Its this codeand only takes a few seconds to run.
On my system it can take up to 10 minutes or so to save a large scene so I did not automate that.
import string
mypz3 = "C:Documents and SettingsOwnerMy DocumentsPoser Scenesdystopian_picnic.pz3"
stuff = ["acto","prop","ligh","came"]
fi = file(mypz3,"r")
myfig = ""
for line in fi:
line = line.strip("n")
if line[0:7] == "figure ":
myfig = line
if line[0:4] in stuff:
myact = line
p = line.strip(" tn")
if p.startswith("pointAtTarget"):
print myfig," / ",myact," / " ,p
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.
anyone know a way to get whats pointed at what without looking at the pz3 or other files ?
I am rigging a complex model and wanted to check all the parts , but didnt see a way of getting that information. :(