Sun, Oct 6, 7:11 AM CDT

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Oct 05 8:40 pm)



Subject: Change magnets to outline with a MAT pose?


pitklad ( ) posted Thu, 29 March 2007 at 7:05 AM · edited Fri, 26 July 2024 at 7:28 AM

Is it possible?

it is pretty annoying to set them to outline every time, one for the magnet and one for the base!!!


My FreeStuff


PhilC ( ) posted Thu, 29 March 2007 at 7:58 AM

This little Python script should do it.

Script to set all magnet elements to outline display

PhilC

http://www.philc.net

scene = poser.Scene()

def doIt():
 for actor in scene.Actors():
  if actor.IsDeformer() or actor.IsBase() or actor.IsZone():
   actor.SetDisplayStyle(poser.kDisplayCodeEDGESONLY)
 scene.DrawAll()

doIt()


EnglishBob ( ) posted Thu, 29 March 2007 at 10:25 AM

That's useful, thanks Phil. I prefer the magnet zone to be in wireframe mode, but I think even I can see how to change that. ;)


amacord ( ) posted Thu, 29 March 2007 at 12:15 PM

one more little helper.... cheers, phil! A. runs off with the booty


pitklad ( ) posted Thu, 29 March 2007 at 12:21 PM

PERFECT!!!!!!!!!!!!!

thanks so  much Phil!

You are a treasure! :wub:

I own you all those sec I lose every time I work with magnets! 

:thumbupboth::thumbupboth::thumbupboth::thumbupboth:


My FreeStuff


pitklad ( ) posted Thu, 29 March 2007 at 12:26 PM

Another question!

Is it possible to make all magnets visible and in P6? not only the one that is loaded on the selected part?
For symmetric magnets you have to select the symmetric part and only then the magnet becomes visible!


My FreeStuff


PhilC ( ) posted Thu, 29 March 2007 at 2:16 PM

Yes, use the Poser menu:- DisplayDeformersShow All


pitklad ( ) posted Thu, 29 March 2007 at 3:43 PM

:blushing: 😊
I didn't know that option!
Thank you so much Phil once again!
I was working magnets on PP just for that reason!
:biggrin:


My FreeStuff


EnglishBob ( ) posted Thu, 29 March 2007 at 4:26 PM

In case anybody was wondering, here's the modification to make the magnet zone appear in wireframe, while the magnet and base are outlined: scene = poser.Scene() def doIt(): for actor in scene.Actors(): if actor.IsDeformer() or actor.IsBase(): actor.SetDisplayStyle(poser.kDisplayCodeEDGESONLY) if actor.IsZone(): actor.SetDisplayStyle(poser.kDisplayCodeWIREFRAME) scene.DrawAll() doIt() I find this makes it easier to adjust the zone's shape and position in 3D. Hope you don't mind me hacking your intellectual property, Phil. ;)


pitklad ( ) posted Thu, 29 March 2007 at 4:42 PM

Thanks EnglishBob using both scripts we can toggle from one to another option!

I'm working very much with magnets this days and those 2 really save me waste time!

:thumbupboth:


My FreeStuff


lesbentley ( ) posted Fri, 30 March 2007 at 9:24 AM · edited Fri, 30 March 2007 at 9:31 AM

If you would rather use a pose file to impliment Outline display mode, this small pz2 will do it for the currently selected actor. It should work on magnets, props, body parts, lights, anything. The one condition is that there must be a figure in the scene.

{
//OUTLINE.pz2
version
 {
 number 5.00
 }
actor $CURRENT
 {
 displayMode EDGESONLY
 }
}

If you do want to use it with no figure in the scene, give it an MT5 file extension and save it to a 'materials' folder.


pitklad ( ) posted Fri, 30 March 2007 at 12:05 PM

Thanks for the tip lesbentley  !!! :thumbupboth:

{
//OUTLINE.pz2
version
 {
 number 5.00
 }
actor $CURRENT
 {
 displayMode EDGESONLY
 }
}

Modified it and this one makes current selection it  WireFrame!
This should be nice for hair!
 
I guess pose file is easier since you have to go to the material room to apply a mt5 file 😉


My FreeStuff


pitklad ( ) posted Fri, 30 March 2007 at 12:17 PM

{
version
 {
 number 5.00
 }
actor $CURRENT
 {
 displayMode USEPARENT
 }
}

And this one toggles to current document setting! This is fun!
:biggrin:


My FreeStuff


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.