Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 09 3:46 am)
Not heard of one but I have to ask, why is it so time consuming to hide them all? Just make them invisible by "Body" in the Hierarchy window.
Coppula eam se non posit acceptera jocularum.
Yeah, I never thought of that. Doh.
Coppula eam se non posit acceptera jocularum.
ah, it was definately an awesome script, but it didn't really do what I was looking for... still pretty nifty, though...
I set up a spaship interior with 39 figures (and not counting the props most of those figures have)... so my ideal would be, say, clicking on one wall that I want to render, close up on it, then click on the "hide all figures and props except for the figure selected and its props" and then wham! all 38 figures would hide and presto...
thanks again, of course... I'll keep checking on this
Quote - ah, it was definately an awesome script, but it didn't really do what I was looking for... still pretty nifty, though...
I set up a spaship interior with 39 figures (and not counting the props most of those figures have)... so my ideal would be, say, clicking on one wall that I want to render, close up on it, then click on the "hide all figures and props except for the figure selected and its props" and then wham! all 38 figures would hide and presto...
thanks again, of course... I'll keep checking on this
I understand exactly what you're looking for. I tried to sit down and write this script once before. However, the issue is being able to cycle through everything in the scene.
Poser makes it easy to work with the currently selected actor (figure/prop.) Trying to cycle through each individual actor in the scene gets a bit tricky. You can cycle through the actors (or better yet, the figures,) method of the scene, then cycle through that actor's children perhaps? (Would that give you the props associated with the current actor?)
I don't know how this would work in the end though. There is a SetOnOff method for figures, but not for actors. I think that's where I hit a snag in the past. (Honestly, it's been about a year since I attempted this script, so I really don't remember.)
"hide all figures and props except for the figure selected and its props"
I'll write a variation that does this. Destro is right that locating all attached
props can be tricky, especially things like hair. For some reason Poser
is inconsistent in deciding who belongs to whom, and I've never pinned
down exactly where the inconsistency is.
My python page
My ShareCG freebies
Attached Link: http://ockhamsbungalow.com/Python/HideAllBut.zip
Okay, same ZIP, new content. As predicted, this was not quite as simple as the other forms. I also gave each script in the ZIP a longer and more descriptive name, and an internal comment explaining what it's for.My python page
My ShareCG freebies
hmmm, it appears to be the very same ZIP as the rpevious one... both files inside have the same modified date, and they do exactly the same as they did before... and the names inside the zip are exactly the same and not longer...
maybe I have the file cached in my system?? I refreshed everything and dnloaded it with a different name., but keep getting the same files over and over...
Great work Ockham. "HideAllButThisFigureAndAttached.py" is the base of the script I was once trying to write. The only addition I wanted to make is to cycle through each figure/prop in the scene, and render each as the only visible object, one at a time. Sort of a Render Passes script, but not dealing with lights.
If I have some spare time, I'll work on modifying the script to do this. (If you don't mind of course.) No promises though, all.
Quote - hmmm, it appears to be the very same ZIP as the rpevious one... both files inside have the same modified date, and they do exactly the same as they did before... and the names inside the zip are exactly the same and not longer...
maybe I have the file cached in my system?? I refreshed everything and dnloaded it with a different name., but keep getting the same files over and over...
It shouldn't be. I downloaded it, and it's different for me. There should be 3 files in the zip instead of 2.
Ack! My stupid website caches things, and I thought I had killed the
cache. I'll upload a HideAllBut2.zip............
Okay, try this. The old one is firmly deleted and the new one
is definitely the new one.
My python page
My ShareCG freebies
YOHEEEEEEEEEEEEEEEEEEEEE!!! (yeah, my onomatopeias are weird, I know)
Thank you so much, ockham!! this new file absolutely and completely delivers, you have proved to be once more the true one and only python script master!!
thanks again for letting me keep my sanity, this whole issue was truly drving me nuts...
The cycle-and-render would look like this. (Attaching directly if possible)
My python page
My ShareCG freebies
Here's an image of the file.
The part above "AlreadyUsed=[] " is new, and the last line is new.
Everything between those points is the same.
My python page
My ShareCG freebies
I've copied the text and attached it to this post. If someone downloads it, make sure you change the .txt extension to .py
Thanks Ockham!
destro, I got this error with your script:
File "", line 30
scene.Render()
^
SyntaxError: invalid synta
and ockham, after I apply your script, as I originally wanted, all figures but the selected one hide away... but now, after I render the one figure and I want all other 38 figures to reappear, when I click on the poser menu Show All Figures, only the figures parented to the one figure show up, all other figures remain hidden even after that command is applied... hence, i have to go to the hierarchy editor and make them show up one by one... pretty much completely defeating the original time saving purpose...
is there any work around this?? thanks again for everything
Probably the quickest way to make everything show up again is just
to Revert the PZ3. (Providing you saved it frequently!)
I'll rewrite the script so that it forces both hide and unhide,
which should make the multi-render work better, and add
a mirror-image script to reverse the action.
My python page
My ShareCG freebies
I'm not sure why you're getting an error there. The code is correct, as far as I can tell. I haven't run it yet, but it looks correct.
I'm attaching another version. It will process each render seperately, and save them to C:Poser_Renders, and inside that folder, there will be folders with the time the script is started. Inside any of those folders will be a number of rendered images, based on the processing of this script. (Sorry, I don't have time to test this, and I'm on my way to work, but this should work okay.)
Quote - > Quote - I'm not sure why you're getting an error there. The code is correct, as far as I can tell. I haven't run it yet, but it looks correct.
An old favourite, you have to remember to press return at the end of the last line of code, otherwise you get this suprious "Syntax Error" report.
DOH! Yes, you're right! I totally forgot about that. It's obviously been quite a while since the last time I wrote some Python code.
Quote - destro, I still dont quite get what your script is supposed to do...
:/
It should basically do what Ockham's version did, with the additional bonus of cycling through the scene, turning off visibility for each figure but one, then rendering and saving that image.
You should find a folder on your C: drive named Poser_Renders, and inside that folder, should be a bunch of folders. Inside those folders should be a bunch of images, which would be the renders.
Honestly, I have no idea whether the script actually works or not, since I never ran it. I wrote it at work, so it may have no functionality at all.
interesting concept to grasp... certainly not what I was aiming at, but interesting nonetheless...
I'm still using ockham's script, with the on;y draw back of constantly having to close my poser scene without saving.... as once all figures are hidden, they dont come back with the "show all figures" poser command... but it's a beginning...
thanks again for all the help!
Attached Link: Masons free stuff
@sandmarine- try the 3rd one here on Masons page too." Try and be nice to people, avoid eating fat, read a good
book every now and then, get some walking in, and try and live
together in peace and harmony with people of all creeds and
nations."
-Monty Python
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.
Poser 6 has an option to Show All Figures, which is very practical when you have hidden all figures in your scene... but it doesn't have a Hide All Figures option in return.
What would make my life less of a nightmare would be a Python script where, if I have 7 figures on a scene, I click on one of them, and then run the script "Hide all figures, except for the selected figure"... I just recently realized that if you hide all figures and leave on only the one you're rendering, the render time speeds up like crazy, but hiding all figures one by one is so time consuming, that it defeats the time saving purpose of doing precisely that all together.
so, does anyone if such a script exists?? if not, any ideas on how to hide figures by the bulk, and not just one by one??
I'll really appreciate any input in this, as it's seriously driving me crazy...