Announcement

Collapse
No announcement yet.

Auto LightSelect script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I managed to do an update on my own.
    I took the last version my Student made before he left and added the LS modes of Vray Next.

    RenderElementScript v1.361.zip

    The last version he made had some additions to the last one I posted here:

    Light Selection:
    -In any selection set: adds only lights which are in selection sets.
    If a light is in two selection sets it gets added just once.

    -All Selection Sets: adds only lights which are in a selection sets.
    It will add lights which are in more than one selection sets as often as they appear in a different set. (I think this was necessary for the following)

    Grouping:
    -by selection set:
    Is only active when 'All Selection Sets' is checked.
    It will group the lights using the selection sets they're in. The LS will then have the name of the selection set.
    If you put a light in two selection sets it'll appear in both LS!

    Sorting:
    -Sort elements by name: Self describing.

    Known issues:
    -'Only activated lights' will result in an error if 'all selection sets' and group 'by selection set' are both checked.


    I didnt really needed any scripting skills to add the Vray Next modes.
    Fixing the issue and making a more user friendly 'group by selection set' option is a completely different thing.
    It might take a while till I'm able to address those since I have to first find the time to learn MAXScript.

    I think the script will still work with 3.6 (except the modes from Next). But I can't test it right now.
    Attached Files
    Last edited by Ihno; 26-09-2018, 08:31 AM.
    German guy, sorry for my English.

    Comment


    • #17
      I love this script but what code would need to be added for a checkbox for to auto set all the Denoisers on/off for each light before the LightSelect render elements are created ?

      PS - I'd have thought by default Denoiser for LightSelect should always be selected as on ?
      Jez

      ------------------------------------
      3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
      Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

      Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
      ---- Updated 06/09/23 -------

      Comment


      • #18
        Um that might be very easy... I'll take a look tomorrow.
        German guy, sorry for my English.

        Comment

        Working...
        X