3dcheapskate opened this issue on Mar 03, 2012 · 11 posts
3dcheapskate posted Sun, 04 March 2012 at 10:33 AM
Thanks again Phil/Les.
Prop Goto Poses - Yes, I've already had that "Whoa! Where did Mike just go? (and why's the sword not moved?)" moment! Also noticed that Edit > Undo Change doesn't put it back.
There's very likely to be multiple instances of the same sword in the scene (the ones I'm working on were historically often used in pairs) so the actor $CURRENT approach definitely seems the way to go. Just tried that smartparent lHand/rHand and it works fine even if the prop was loaded unparented.
I've already worked out the xyz rotation/translations necessary to position/orient the prop correctly for a dozen or so zeroed figures (luckily I started with M3, whose default pose is asymmetrical, and realised I needed to use the zero pose instead!) so the goto poses are coming along nicely.
Prop Goto Script - For the script I'm already using a second AskMenu which is fine, but I was hoping to find an undocumented PoserPython method to create that three-button (left, right, and cancel) "Which hand?" dialog.
I guess that if both the figure and prop were selected (figure as figure, and prop as actor) then it should be quite easy to smartprop using the actor.SetParent() method?
Using a script also avoids accidentally using the goto on the figure itself - I've already got an if actor.IsBodyPart(): check in there to abort it.
A new oddity I noticed - I'm running the script from a very simple poser file:
{
version
{
number 6
}
runPythonScript ":Runtime:Python:poserScripts:3DCheapskate:PropGoto.py"
}
If I make this file a pp2 in the Props folder it runs fine. But if I make it a pz2 in the Pose folder it runs twice every time! Can't figure that one out.
The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.
*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).