I am creating some custom lights for lightmap process in Maya.
Some of my template are using multiple lights but I would light to hide the lights's icon in my viewport replacing by a custom of mine.
Problem is if I switch the Visibility attribute value to "0", light will stop any activity in my scene...
Then is there a way to hide one light icon in the viewport keeping the light active in my scene?...
Replies
you should try to put the scale of the light to 0.001 or something very small
1. create a dummy object you want to use as your light icon
2. create your light, and assign a point constraint to it from the object (select object, then light)- you might also want an orient constraint for rotation
3. go to the viewport menu 'show' and uncheck lights
now you should be able to turn the visibility of that dummy object off, but the light will still take effect and be invisible. Is that the sort of thing you meant?
Bad choice, this affect Volume Light area =_=.....
Everything is already mel scripted and more complex
no I want to see other lights I didn't create with my tool.
Not really...
I already tried to parent lights to a group or Locator and then turn visibility to 0 but it affects the lights.
Same with a layer and hiding the layer will affect lights too...
About the Dummy in Maya :
More tips?
You can manually do it, or make a purdy mel that does it for you.
And after you do it, the light still functions.
But the locatorScale attribute doesn't accept 0 value on Maya 2009 It will give the following error :
But anyway, yeah, 0.00001 works perfectly.
Really thank you Lamont I didn't know this attribut!
lol I'm very very happy, this is perfect!!mouahahahahh!!!
The small icon will stay
This is better than before but ... >_> ...
Oh and I still can't find out why it doesn't accept 0 Sama.Van. I can use 0 in 2008, and seaching online, didn't see anything mentioning it.
http://area.autodesk.com/forum/autodesk-maya/autodesk-maya-2009/light-attribut--locatorscale/
Ahhh.. sorry.
Then put the light in an LOD group. then add yer Object proxy to the LOD group.
( light on top as default depending on whatever distance strategy u have )
tested 100% grade A "werking"
( unless it's not )
Edit > Level Of Detail > group
Re: locator attr:
Lamont, it's probably a divide by zero failsafe fer 2009 and up?
Better yet,
for areaLight1...
Don't use the shape lodVisibility. ( Transform will override )
Parent the light into yer object.
Grade A 101%