Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Try this one:
def doFreeze():
actor = poser.Scene().CurrentFigure().Actor("Hip")
freeze(actor.ParameterByCode(poser.kParmCodeXTRAN))
freeze(actor.ParameterByCode(poser.kParmCodeYTRAN))
Load a figure and run the script. Then grab the figures hip with the mouse and try to move it. It will move โ but only in the (not blocked) Z-direction.
Don*t forget to unfreeze!
Nice.
W10 Pro, HP Envy X360 Laptop, Intel Core i7-10510U, NVIDIA GeForce MX250, Intel UHD, 16 GB DDR4-2400 SDRAM, 1 TB PCIe NVMe M.2 SSD
Mudbox 2022, Adobe PS CC, Poser Pro 11.3, Blender 2.9, Wings3D 2.2.5
My Freestuff and Gallery at ShareCG
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.
And the obvious counterpart:
Unlike Poser's built-in method (Lock Object), this also allows morph parameters to be protected against accidental modification.
When using this method, you must be very careful not to delete any object without first removing the locks. Otherwise there is a danger of crashing.
The best way is to use it within an AddOn, where you are notified when objects are deleted (or added).