question

Slava Sych avatar image
Slava Sych asked

HtoA Operators Invert selection light group in Set Parameters

Hi
it is possible to invert selection in light group?
Need to use all light in scene but turn off concrete light source for concrete object in procedural ass
operator3.jpg

htoaproceduralslight grouplight linkingset parameter
operator3.jpg (28.5 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered

Use a Selection expression like this:

*.(@type=='light') and not /aiSkyDomeLight1/aiSkyDomeLightShape1

For example, that will select all lights except for the light named /aiSkyDomeLight1/aiSkyDomeLightShape1


mtoa-light-selection.png


7 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Thanks, but as I wrote above this method is work like Disable operator, and turn off light source for all scene, in my case need turn it off for one specific shape inside ass assemble

0 Likes 0 ·

So, you don't want to invert the selection.

You want to select one specific object? Then can't you just select it by name?

0 Likes 0 ·
Slava Sych avatar image Slava Sych Stephen Blair ♦♦ ·
I need light linking inside *.ass
0 Likes 0 ·
Show more comments
Stephen Blair avatar image
Stephen Blair answered

You can do something like this:

*.(@type=='light') and not '/obj/fill_FLOWER'
4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Not work

00:00:03 753MB | [operators] init op: '/out/set_parameter4'
00:00:03 755MB | [operators] cook op: '/out/set_parameter4' | node: '/obj/procedural1/procedural'
00:00:03 755MB WARNING | [assignment] unable to process parameter "light_group": light_group = *.(@type == 'light') and not '/obj/fill_FLOWER'

0 Likes 0 ·

or

00:00:04 380MB WARNING | [assignment] cannot set user parameter "*.(@type" without type declaration: *.(@type=='light') and not '/obj/fill_FLOWER'


if not use "light_groups="

0 Likes 0 ·
Use it as a selection expression, to select all lights except those with that name
0 Likes 0 ·
Slava Sych avatar image Slava Sych Stephen Blair ♦♦ ·

Thanks for help Stephen,may i ask you wrote more precisely what you mean please, because I not perfect understand what you mean, if i use it for selection in set parameter this is do same as disable operator, if i use in for collection and than use collection name for light_group = - it will get same warning as before
Thanks

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.