Tue, Dec 24, 10:43 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Mirror Magnets for a Prop?


chinnei ( ) posted Fri, 30 May 2008 at 4:50 AM · edited Mon, 23 December 2024 at 7:38 PM

I know there's a script for mirroring magnets for a figure, but is there one for a prop (Poser 7)?  I tried ockham's script on an object, but it's giving me an error looking for a opposite actor.  I just need Xtran to be mirrored for the magnets and magzones, nothing fancy really.  Thanks for any help.


lesbentley ( ) posted Tue, 24 June 2008 at 5:34 PM · edited Tue, 24 June 2008 at 5:41 PM

Is this just temporary for the purpose of spawning a morph, or do the magnets need to stay on the prop permanently? How many pairs of magnets do need to have on the prop?


lesbentley ( ) posted Tue, 24 June 2008 at 8:42 PM · edited Tue, 24 June 2008 at 8:43 PM

file_408935.TXT

Attached above is a pose file that may, or may not do what you want "MM-Props-Lite.cm2". To post it here I had to add a ".TXT" file extension. Download it to any sub-folder of the Camera folder, drop the ".TXT" part of the file extension.

This had some very minimal testing in P6, it will probably work the same in P7 and P7P, it may also work in earlier versions.

"MM-Props-Lite" is meant to be used when only one element in the scene has magnets attached to it, there may be problems if other magnets are in the scene.

This is a cm2 (camera) file, it was necessary to give it a cm2 file extension so it would work on props when no figures are in the scene. It will NOT create any magnets, you have to do that part yourself. What it will do is to slave even numbered magnets to odd numbered magnets, so that magnet 2 becomes a slave of magnet 1, and magnet 4 becomes a slave of magnet 3, e.t.c. The even numbered magnets will follow the movements of the odd numbered magnets in left/right mirror symmetry, in real time. It supports a maximum 12 magnets (6 pairs).

To use it, load your magnets onto the prop, with the prop selected as the active element, apply "MM-Props-Lite" from the Camera pallet. Use the drop-down props menu to select a Mag, Base, or Zone. Use the dials in the  Parameters pallet to move the element. You can also use the mouse to move the elements of the magnet, but I recommend you use the menu and dials until you get a little separation between the magnets.

The translations and rotations of the Mags, Bases, and Zones will be mirrored, scale and the Falloff Graph will NOT be mirrored.

The odd numbered Mags and Bases will be the normal colour, the even numbered Mags and Bases will be blue. Only the odd numbered magnets will be capable of selection, the even numbered magnets will adjust automatically. The even numbered magnets will be "hidden" from the menus, and from selection by the mouse (though still visible). If you need to scale an even numbered magnet, you can select it in the Hierarchy Editor, its parameter Pallet will then become active, or you can use the "UnHide-Even.cm2", that I will attach to the next post. Reapplying "MM-Props-Lite" will hide the even numbered magnets again.

"MM-Props-Lite", is a very cut down and limited version of a similar system I am developing for use with figures, "MM32".


lesbentley ( ) posted Thu, 26 June 2008 at 6:11 AM

I have taken a look at Ockham's MagnetMirror.py. So long as the un-translated prop is centred on the UNIVERSE Z axis, and symmetric in respect to that axis, then this should work. Load a figure, move the figure back out of the way of the prop,  parent the prop to the figures hip, create a magnet on the prop and position it as desired, with the prop selected as the active element, run the  MagnetMirror.py. It should mirror the magnet on the prop. Once you have the magnets mirrored, you can change the props parent back to UNIVERSE, and delete the figure. Don't forget to unparent the prop, or it will be deleted with the figure.

PhiC's Poser Tool Box (commercial product) has a script to mirror magnets, from memory I think it will work on both figures and props. Poser Tool Box is a very handy collection of Poser Python tools, check it out at PhilC's site:

PhilC's Catalog


Privacy Notice

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.