Purpose
A quick script to turn the headlamps off on all cameras in a scene
else iRay renders them
History
September 17th 2016 4:21PM Released
Installation
The zip package is found at the bottom of this page
unzip it in your daz content folder,
typically :
C:\Users\USERNAME\Documents\DAZ 3D\Studio\My Library
once installed, it will appear in your content library, under
My Library / Scripts / mcasual
Starting with Windows 7 if you right click on the downloaded zip file
and select the [Extract All ....] pop-up menu item
you simply browse up to your Daz Studio Content Folder
and the files will fall in the proper folder
Use
You dont need to select the cameras, run the script they will all be found by the script
Source code
beginUndo();
var cameras = Scene.getCameraList(); var n = cameras.length; for( var i = 0; i < n; i++ ) { var camera = cameras[i]; var prop = camera.findProperty( "HeadlampMode" ); if( prop ) { prop.setValue( 2 ); //Auto = 0, On = 1, Off = 2; } }
acceptUndo("mcjTurnHeadlampsOff");
License
// =====================================================================
by mCasual/Jacques
You can use this script freely for personal or commercial use.
You may not sell, resell, sub-license or rent this script in any way.
you may credit this script to mCasual/Jacques
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// =====================================================================