Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
I have many lights I need to change from Point to Infinite in each of my scene and keep all other parameters the same (color, intensity, position, rotation, parent...). Is it possible to get this done in Python simply? Thanks.
You can do it in Python. Simply query the scene for all the lights, change the attribute LightType to kFBLightTypeInfinite. See script below. Hope that helps. 🙂
from pyfbsdk import *
lLightList = FBSystem().Scene.Lights
for i in range(0, lLightList.__len__()): print lLightList.__getitem__(i).Name lLightList.__getitem__(i).LightType = FBLightType.kFBLightTypeInfinite