Create Advanced Iray Node Properties Script Not Working

skinnii3dskinnii3d Posts: 11
edited November 2023 in Daz Studio Discussion

I usually use DazStudio on an account on my PC that does not have administrator rights. On this account when I try to run the "Create Advanced Iray Node Properties Script" nothing happens.

If I switch to the account on my PC with administrator rights and run DazStudio and the script it does work.

I have tried copying the script to another location and running it without admin rights and it still doesn't work.

I have tried elevating DazStudio to run with admin rights but this doesn't work because I'm told it can't be run with elevated rights.

Is there any workaround I can use to run the script on the account that does not have admin rights?

*EDIT* - Even elevating the previously non admin account to have admin rights does not work.

Post edited by skinnii3d on

Comments

  • The script does not require administrator rights, nothing in Daz Studio itseklf does 9and indeed, the application wil fail to run if you try to start it with admin rights). Have you updated the Default Resources package on the problem machine, assuming you are using DS 4.22?

  • Richard Haseltine said:

    The script does not require administrator rights, nothing in Daz Studio itseklf does 9and indeed, the application wil fail to run if you try to start it with admin rights). Have you updated the Default Resources package on the problem machine, assuming you are using DS 4.22?

    I'm using Daz on the same PC.

    One account has administrator rights (the account I used to update Daz to 4.22) and the script works fine

    The other account doesn't have administrator rights and the script does nothing.

    I am running the same version of Daz from the same install location on both accounts. The only difference is that one was used to install the update and has admin rights (which works) and the other one doesn't have admin rights (which doesn't work).

    Perhaps admin rights are a red herring. I elevated the second account to have admin rights and it still doesn't work. I am now wondering if this is a pathing issue. Because Daz was installed on the primary Admin account it is trying to point to a location the secondary non-admin account doesn't have access to. But that's just a guess.

    I do have a third-party ghost light script that gives the same outcome as the Daz version so I can use that but it would be nice to know why the script doesn't work and if there is anything I can do about it.

  • NOt working for me either unfortunately 

  • Pathing would certainly be my suspicion, especially if yiou used connect to install the content (DIM defaults to using the Public Dociments folder, which should be open to all). If you used Connect then it is quite possible that the failing account has a different database and cannot see the new files, so it might well be using an older installation of the script.

  • I just tried this out and it worked fine for me. There is one little issue. Although the ghost light did disappear and still lit the scene, the scene I was using had a polished wooden floor, and the ghost light is clearly reflected in that.

  • felisfelis Posts: 4,340

    You can try to increase 'Iray Ghost Light Factor'.

    What it is supposed to do I do not know, but it can somehow change reflections.

  • felis said:

    You can try to increase 'Iray Ghost Light Factor'.

    What it is supposed to do I do not know, but it can somehow change reflections.

    I will give that a go.

  • crosswindcrosswind Posts: 6,988
    edited November 2023

    stripe6499_9253833ae8 said:

    I just tried this out and it worked fine for me. There is one little issue. Although the ghost light did disappear and still lit the scene, the scene I was using had a polished wooden floor, and the ghost light is clearly reflected in that.

    Yes, that's it ~ the geometry is still there in reflection... no matter how you tweak the settings...

    ver1.0 ghost light came from an Nvidia iray bug, ver1.5 interim ghost light was gone since 4.15 (if I remember correctly), now ver2.0 ghost light is not a 'real ghost light' since bug was fixed. Even if iray invisible is set on it, reflection can still catch it.

    That was why there was no demonstration of 'ghost light in reflection' in the official tutorial...

    PS: I remember the older scripts for 4.21.1.26+ could handle mesh light with iray invisible, now it seems such a function has gone...

    SNAG-2023-11-2-0081.png
    1486 x 1302 - 2M
    SNAG-2023-11-2-0082.png
    1486 x 1302 - 3M
    SNAG-2023-11-2-0083.png
    2023 x 1396 - 3M
    Post edited by crosswind on
  • The Iray Ghost Factor is precisely the tool for hiiding ghost lights from some or all relfections - it is explained here https://www.daz3d.com/forums/discussion/609556/creating-a-ghost-light-daz-studio-4-21-1-26

  • crosswindcrosswind Posts: 6,988
    edited November 2023

    Richard Haseltine said:

    The Iray Ghost Factor is precisely the tool for hiiding ghost lights from some or all relfections - it is explained here https://www.daz3d.com/forums/discussion/609556/creating-a-ghost-light-daz-studio-4-21-1-26

    Unfortunately, up to now, it doesn't work... I experimented those 'old scripts' in that thread when it was posted, they worked though not perfect. But the thread was modified days ago, old scripts are gone and the script in latest Default Resources brought me these results. I've already set Factor to 1 Mil...

    Seemingly, we're not able to make real ghost lights since Nvidia driver was updated again... 

    Post edited by crosswind on
  • crosswind said:

    Richard Haseltine said:

    The Iray Ghost Factor is precisely the tool for hiiding ghost lights from some or all relfections - it is explained here https://www.daz3d.com/forums/discussion/609556/creating-a-ghost-light-daz-studio-4-21-1-26

    Unfortunately, up to now, it doesn't work... I experimented those 'old scripts' in that thread when it was posted, they worked though not perfect. But the thread was modified days ago, old scripts are gone and the script in latest Default Resources brought me these results. I've already set Factor to 1 Mil...

    Seemingly, we're not able to make real ghost lights since Nvidia driver was updated again... 

    The scene fiels work, assuming you have a  recent enough version of the nVidia drivers. You should not ned to hit 1,000,000 - the effective value range is [0,128]

  • crosswindcrosswind Posts: 6,988

    Richard Haseltine said:

    crosswind said:

    Richard Haseltine said:

    The Iray Ghost Factor is precisely the tool for hiiding ghost lights from some or all relfections - it is explained here https://www.daz3d.com/forums/discussion/609556/creating-a-ghost-light-daz-studio-4-21-1-26

    Unfortunately, up to now, it doesn't work... I experimented those 'old scripts' in that thread when it was posted, they worked though not perfect. But the thread was modified days ago, old scripts are gone and the script in latest Default Resources brought me these results. I've already set Factor to 1 Mil...

    Seemingly, we're not able to make real ghost lights since Nvidia driver was updated again... 

    The scene fiels work, assuming you have a  recent enough version of the nVidia drivers. You should not ned to hit 1,000,000 - the effective value range is [0,128]

    128 doesn't work either...Yes, I have the latest studio driver.  rbtwhiz mentioned no info. about Nvidia driver in the thread...and I cannot always stick to one older driver...Anywai if the driver turns out to be the culprit, I just let go as I rarely use ghost light after all.

  • barbultbarbult Posts: 24,244

    I think the problem people are having may be because the video tutorial does not perform all of the functions that rbtwhiz (Rob) describes in the forum post that Richard referenced. If you look carefully at Rob's instructions, Method A requires setting the surface Refraction Index and Refraction Weight in the Surfaces pane. Method B requires applying the Emissive shader to the ghost light surface. Both method A and method B result in ghost lights that are invisible, including in reflections, for me.

    I've been waiting a long time to get an official script update that would create all these properties, so I didn't have to create them manually. So thank you rbtwhiz and the dev team for the new script.

  • crosswindcrosswind Posts: 6,988
    edited November 2023

    barbult said:

    I think the problem people are having may be because the video tutorial does not perform all of the functions that rbtwhiz (Rob) describes in the forum post that Richard referenced. If you look carefully at Rob's instructions, Method A requires setting the surface Refraction Index and Refraction Weight in the Surfaces pane. Method B requires applying the Emissive shader to the ghost light surface. Both method A and method B result in ghost lights that are invisible, including in reflections, for me.

    I've been waiting a long time to get an official script update that would create all these properties, so I didn't have to create them manually. So thank you rbtwhiz and the dev team for the new script.

    In fact 3 settings are all in my scene above.... So latest ghost light is driver dependant if it works on your side... and I assume if you move your ghost light close to a geometry, you still can see the shadow... probably. 'Cause when I saw it worked in Q1 with older driver, I saw the shadow...

    And the scripts could be used on spotlight at that time but now it can't...

    Post edited by crosswind on
  • barbultbarbult Posts: 24,244
    edited November 2023

    I'm using NVIDIA driver version 537.58. I don't see a shadow. I'll try another test with another light shining at the emissive ghost light to cast a shadow on an object.

    Edit: No, no shadow problem as long as I have refraction turned on. The spotlight shines right through the ghost light, and the ghost light casts no shadow on the objects behind it.

     

    Post edited by barbult on
  • crosswindcrosswind Posts: 6,988
    edited November 2023

    barbult said:

    I'm using NVIDIA driver version 537.58. I don't see a shadow. I'll try another test with another light shining at the emissive ghost light to cast a shadow on an object.

     

     

    I'm using the very same driver as you do. I deleted Zeus and changed all objects to basic primitives. Pls help to check if there's any settings wrong. Thanks!

     

    duf
    duf
    GL.duf
    216K
    SNAG-2023-11-3-0093.png
    705 x 544 - 35K
    SNAG-2023-11-3-0094.png
    1486 x 1302 - 1M
    Post edited by crosswind on
  • barbultbarbult Posts: 24,244

    crosswind said:

    barbult said:

    I'm using NVIDIA driver version 537.58. I don't see a shadow. I'll try another test with another light shining at the emissive ghost light to cast a shadow on an object.

     

     

    I'm using the very same driver as you do. I deleted Zeus and changed all objects to basic primitives. Pls help to check if there's any settings wrong. Thanks!

     

    Well, I don't see refraction turned on on your emissive cube ghost light. And your Iray Ghost Light Factor is not >1. So neither of those settings match what Rob's Method A instructions outline. Which method were you attempting to follow? However, even setting refraction index and refraction weight to 1 and setting Iray Ghost Light Factor to 128 did not completely eliminate the reflection of the cube in the mirror. Am I looking at the right things in your scene?

  • I tried a quick reproduction from scratch, which seemed to work correctly. As barbult says, a number of your settings did not seem to match the recipe.

    Ghost lights.jpg
    1000 x 1000 - 355K
    duf
    duf
    Ghost light test.duf
    642K
  • barbultbarbult Posts: 24,244

    OK, I see a couple other issues. Your emissive ghost cube has roughness turned to max. I set it back to 0 and that eliminated most of the cube reflection, except on the bottom. It looks like the bottom or your cube geometry is in exactly the same place as the floor plane. Daz Studio/Iray doesn't like multiple polygons in the same place. If I raise your cube up on the Y axis, that improves things, too.

  • Richard HaseltineRichard Haseltine Posts: 100,952
    edited November 2023

    I also tried reloading your scene and replacing the cube with mine - that remains invisible in the mirror, but something odd is happening with the ground under it (I see some of the wireframe). Edit: as barbult says, the issue is essentially that the geometry coincides - but I would almost expect the cube's invisibility to offset that. Still, in practice this is a fairly artificial set up.

    Crosswind Ghost lights.jpg
    1920 x 1280 - 526K
    Post edited by Richard Haseltine on
  • barbultbarbult Posts: 24,244
    edited November 2023

    Here are the modifications I made to your scene. Iray Ghost Light Factor of 2 was high enough.

    Screenshot 2023-11-02 165938.jpg
    3164 x 1989 - 512K
    duf
    duf
    crosswind GL Scene mod.duf
    216K
    Post edited by barbult on
  • crosswindcrosswind Posts: 6,988
    edited November 2023

    barbult said:

    crosswind said:

    barbult said:

    I'm using NVIDIA driver version 537.58. I don't see a shadow. I'll try another test with another light shining at the emissive ghost light to cast a shadow on an object.

     

     

    I'm using the very same driver as you do. I deleted Zeus and changed all objects to basic primitives. Pls help to check if there's any settings wrong. Thanks!

     

    Well, I don't see refraction turned on on your emissive cube ghost light. And your Iray Ghost Light Factor is not >1. So neither of those settings match what Rob's Method A instructions outline. Which method were you attempting to follow? However, even setting refraction index and refraction weight to 1 and setting Iray Ghost Light Factor to 128 did not completely eliminate the reflection of the cube in the mirror. Am I looking at the right things in your scene?

    Actually, pls check. that Glass Sphere in the scene IS with correct Refraction setup. And all the Glossy Layer Weight there is Zero, so Roughness has no effect... and I said I ever tried with Factor value 128 even 1 Mil...maybe I reset it then. I'm now a bit confused and I'm furter testing.

    Post edited by crosswind on
  • crosswindcrosswind Posts: 6,988
    edited November 2023

    I got it finally ! The key is Thin Walled. It's all fine as long as we only set Thin Walled - Off, plus Refraction and Emission on a default Iray Uber shader..    Edit: with default iray uber shader, touch nothing other than Refraction and Emmision !

    But still, that highlight 'shadow' is always there... so better use a 'floating ghost light' ?...devil But I have to say this version of  ghost light is crystal clear, not like the old one with Opacity settings...

    Thank you so much guys !

     

    SNAG-2023-11-3-0097.png
    2020 x 1396 - 898K
    SNAG-2023-11-3-0098.png
    2018 x 1398 - 2M
    Post edited by crosswind on
  • stripe6499_9253833ae8 said:

    felis said:

    You can try to increase 'Iray Ghost Light Factor'.

    What it is supposed to do I do not know, but it can somehow change reflections.

    I will give that a go.

    Yep, that worked for me. Increased the IGLF to 4 and the reflections disappeared.

  • crosswind said:

    I got it finally ! The culprit is Thin Walled. It's all fine as long as it is Off, with refraction and emmsive, while keeping other properties as default.

    But still, that shadow there is always there... so better use a 'floating ghost light' ?...devil But I have to say this version of  ghost light is crystal clear, not like the old one with Opacity settings...

    Thank you so much guys !

    Well, it is the source of the light - none is shining inside the box - so the dark area there is to be expected.

  • crosswindcrosswind Posts: 6,988
    edited November 2023

    Richard Haseltine said:

    crosswind said:

    I got it finally ! The culprit is Thin Walled. It's all fine as long as it is Off, with refraction and emmsive, while keeping other properties as default.

    But still, that shadow there is always there... so better use a 'floating ghost light' ?...devil But I have to say this version of  ghost light is crystal clear, not like the old one with Opacity settings...

    Thank you so much guys !

    Well, it is the source of the light - none is shining inside the box - so the dark area there is to be expected.

    Yes sir, understood !  And...I faint again... was I blind ?! It was not relevant to Thin Walled which should be with default On... there was a Top Coat Weight value which should've been turned off.... And why Glossy Roughness took effect even if Glossy Layered Weight is 0... because of default Share Glossy Inputs is On, it outputs to Refraction with 1...

    Anyway, with default iray uber shader, touch nothing other than Refraction and Emmision ! It works now.yes

    Post edited by crosswind on
  • I have found the solution to the problem I had. It was a pathing issue.

    I have my content located on a separate drive to my DazStudio install. I located where the script was on the account where the script did work and realised this was where my DazStudio is installed. I copied the script from this location and placed it with my other content. The script now works on both accounts.

Sign In or Register to comment.