Forum: Poser - OFFICIAL


Subject: Is there a python script to turn light emitter off on a whole scene?

basicwiz opened this issue on Apr 29, 2013 · 11 posts


basicwiz posted Mon, 29 April 2013 at 1:13 PM

Let me explain a bit further.

I'm trying to do a render using Forest Superior from Daz. It's a marvelously detailed forest, and looks quite nice. It also grinds my high-end system to a halt.

I finally did a little testing and feel sure4 a big part of this is all of the pine tree branches that have light emitter turned on. This strikes me as thge functional equivalent of having 10,000 transmapped hair figures in the scene. 

So...

Is there a python script to toggle ALL of the emitters off so I then could turn back on just the ones I need to use for my characters?

Or am I full of hot air on this one? (as usual)


DarkElegance posted Mon, 29 April 2013 at 1:17 PM

Quote - Let me explain a bit further.

I'm trying to do a render using Forest Superior from Daz. It's a marvelously detailed forest, and looks quite nice. It also grinds my high-end system to a halt.

I finally did a little testing and feel sure4 a big part of this is all of the pine tree branches that have light emitter turned on. This strikes me as thge functional equivalent of having 10,000 transmapped hair figures in the scene. 

So...

Is there a python script to toggle ALL of the emitters off so I then could turn back on just the ones I need to use for my characters?

Or am I full of hot air on this one? (as usual)

heh I asked this about a week ago. >.<

aaaaaaaaaaand

cant remember the answer THOUGH I do remember scene fixer I think does it.

https://www.darkelegance.co.uk/



Commission Closed till 2025



ssgbryan posted Mon, 29 April 2013 at 2:07 PM

That is a good thing to add to the Poser 10 wishlist over on RDNA.



3DFineries posted Mon, 29 April 2013 at 4:36 PM

Here's the link to the other thread with a bit of an explanation of sorts: 

http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2866661

Here is a link to Snarlygribbly's scripts: 

http://snarlygribbly.org/3d/forum/

Have a creative day!

********

My Lil' Store




hborre posted Mon, 29 April 2013 at 6:15 PM

I don't believe snarly has a script yet for turning off the light emitters.


3DFineries posted Tue, 30 April 2013 at 5:47 AM

hborre is right, Snarly's script doesn't have that.  My bad.  I had to fire up Poser to see.

Have a creative day!

********

My Lil' Store




bwldrd posted Wed, 01 May 2013 at 4:20 AM

Once again.. Take a look at netherworks scene toy .. over at rdna.  It may or may not suit your needs. But does include the option to turn off emitters on the selected listed items.  You didn't state whether or not it had to be free.. soooo. shrug

--------------------------------------------------------------------------------

Consider me insane if you wish, but is your reality any better?


aRtBee posted Fri, 03 May 2013 at 9:34 AM

snarly's Pose2Lux can turn off light emitters back into the Poser scene - or at least it sort of kills the Ambient channels that cause the light emission. Just thinking out loud ...

- - - - - 

Usually I'm wrong. But to be effective and efficient, I don't need to be correct or accurate.

visit www.aRtBeeWeb.nl (works) or Missing Manuals (tutorials & reviews) - both need an update though


basicwiz posted Fri, 03 May 2013 at 10:23 AM

It's not a thing to do a song and dance about... I had a scene with about 50 objects that all needed to be turned off. I did it using the heirchy editor to select each object in turn and then manually unched the LE boxes.  Resaved the scene and now it's all good. I just wondered if there was a shortcut I couldn't find.

No biggie.


cspear posted Fri, 03 May 2013 at 11:31 AM

I've had a quick look at a simple cr2 file dating from 2010 and couldn't find anything relating to IDL or light-emitting.

However, I turned off 'light emitter' and saved a copy back to the library. Original file = 24kb, copy file = 32.4kb, so there's a lot more info saved with the copy. Here's one of the key bits:

 

Original:

endPoint 0 0.12714 0.399425
origin 0 0.22714 0.399425
orientation 0 0 0
displayOrigin 0
displayMode USEPARENT
customMaterial 0
locked 0
backfaceCull 0
visibleInReflections 1
visibleInRender 1
displacementBounds 0
shadingRate 0.2
smoothPolys 1

 

Copy (with light emitting turned off):

endPoint 0 0.12714 0.399425
origin 0 0.22714 0.399425
orientation 0 0 0
displayOrigin 0
displayMode USEPARENT
customMaterial 0
locked 0
backfaceCull 0
visibleInReflections 1
visibleInRender 1
visibleInCamera 1
visibleInIDL 0
displacementBounds 0
shadingRate 0.2
smoothPolys 1

 

I've put the relevant property in bold. 

So the question is, does Poser add the extra properties when it loads or only when you save it? I suspect it's the former, which is good news from the point of view of writing a simple python script to turn the 'light emitter" property off.

My python skills are next to zero so I won't have anything any time soon: perhaps someone to whom this would be second nature could have a go?


Windows 10 x64 Pro - Intel Xeon E5450 @ 3.00GHz (x2)

PoserPro 11 - Units: Metres

Adobe CC 2017


Morkonan posted Fri, 03 May 2013 at 6:00 PM

Good info, there!

I'd love a quick script to turn off all light emitters, so I can go back and enable the ones I want. Or, better yet, a script with a menu that lets me click off Light Emitter for every object in the scene and keep the ones checked that I want..

We can dream, can't we?