Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HtoA Operators Invert selection light group in Set Parameters

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
Slava_91
787 Views, 13 Replies

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

Labels (5)
13 REPLIES 13
Message 2 of 14
Stephen.Blair
in reply to: Slava_91

You can do something like this:

*.(@type=='light') and not '/obj/fill_FLOWER'


// Stephen Blair
// Arnold Renderer Support
Message 3 of 14
Slava_91
in reply to: Stephen.Blair

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'

Message 4 of 14
Slava_91
in reply to: Stephen.Blair

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="

Message 5 of 14
Stephen.Blair
in reply to: Slava_91

Use it as a selection expression, to select all lights except those with that name


// Stephen Blair
// Arnold Renderer Support
Message 6 of 14
Slava_91
in reply to: 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

Message 7 of 14
Stephen.Blair
in reply to: Slava_91

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



// Stephen Blair
// Arnold Renderer Support
Message 8 of 14
Slava_91
in reply to: Stephen.Blair

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

Message 9 of 14
Stephen.Blair
in reply to: Slava_91

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?



// Stephen Blair
// Arnold Renderer Support
Message 10 of 14
Slava_91
in reply to: Stephen.Blair

I need light linking inside *.ass
Message 11 of 14
Stephen.Blair
in reply to: Slava_91

I see. I didn't understand the text of the question.

light_group has to be a list of specific light names. No wildcards.




// Stephen Blair
// Arnold Renderer Support
Message 12 of 14
Slava_91
in reply to: Stephen.Blair

"I didn't understand the text of the question. " - Sorry.
So operators can create list of light only need to lighting specific polymesh, and cant exception lights from polymesh lighting ?

Message 13 of 14
Stephen.Blair
in reply to: Slava_91

operators can set the lights in a light_group

The light_group is a list of specific lights, and all those lights will light the object.

light_group is not like tracesets, where you can tobble between inclusive/exlusive. light groups are always inclusive

So, with operators, you cannot invert a light_group



// Stephen Blair
// Arnold Renderer Support
Message 14 of 14
Slava_91
in reply to: Stephen.Blair

Thanks, this is I was looking for !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report