Can I disable Preview Lights on startup?

Hi all. Is there a way to disable Preview Lights by default? I tried Window -> Style and Window -> Workspace - saved workspace and styles, but after restarting DAZ the flag does not persist. I need a method to turn off Preview Lights automatically on launch - via profile, ini, or a startup script. DAZ is inconvenient here, it does not save this setting.

Comments

  • crosswind said:

    Yes. Pls check this thread: https://www.daz3d.com/forums/discussion/comment/9369126/

    thx a LOT!!!!!!!!

    Small fix:
     

    (function DeactivatePreviewLights() {    var mWin = MainWindow;    var aMgr = mWin.getActionMgr();    var oAction = aMgr.findAction("DzPreviewLightsAction");    if (oAction.checked) {        oAction.trigger();        print("Preview Lights deactivated");    } else {        print("Preview Lights already off");    }})();

     

  • crosswindcrosswind Posts: 9,694
    edited November 2025

    Okay, for logging / debugging purpose... No problem, pls modify the code as per your pref. yes

    Post edited by crosswind on
  • I do not fully understand what you meant by the MergeFile mode. In the example

    Scene.loadScene("H:/My DAZ3D Library/Default Scene.duf", "MergeFile");

    we are actually loading only a single .duf file. In the standard DAZ scene load dialog there is also just one field for one file. Do I understand correctly that you mean a case where, using a script, you can load several .duf files one after another so that they are all merged into the current scene? Or does MergeFile work with multiple files in some other way? It is not clear to me how you are supposed to "put" several files into one load operation. Could you explain in more detail how you use this?
  • crosswindcrosswind Posts: 9,694
    edited November 2025

    MaX Pupkin said:

    I do not fully understand what you meant by the MergeFile mode. In the example

    Scene.loadScene("H:/My DAZ3D Library/Default Scene.duf", "MergeFile");

    we are actually loading only a single .duf file. In the standard DAZ scene load dialog there is also just one field for one file. Do I understand correctly that you mean a case where, using a script, you can load several .duf files one after another so that they are all merged into the current scene?

    Yes, that's right ~ If placing one Script file into On Launch, we can add more DUF files (mostly Presets...) into the Script so that we can load them together when launching DS... just as needed. 

    Post edited by crosswind on
  • Note that the second argument is a named cosntant member of DzSvcene:

    Scene.loadScene("H:/My DAZ3D Library/Default Scene.duf", DzScene.MergeFile );

     

  • crosswindcrosswind Posts: 9,694

    Richard Haseltine said:

    Note that the second argument is a named cosntant member of DzSvcene:

    Scene.loadScene("H:/My DAZ3D Library/Default Scene.duf", DzScene.MergeFile );

     

    Right, I forgot to update the post. I ever modified the script with Scene.MergeFile.

    Thanks for the reminder !

Sign In or Register to comment.