CreatePrim "Sphere", "NurbsSurface", "startFalloff" SetValue "startFalloff.sphere.radius", 1 Scale , 5, 5, 5, siRelative, siGlobal, siObj, siXYZ MakeLocal "startFalloff.display", siNodePropagation SetValue "startFalloff.display.wirecol", 126 SetValue "startFalloff.visibility.rendvis", False SetValue "startFalloff.visibility.primray", False SetValue "startFalloff.visibility.scndray", False SetValue "startFalloff.visibility.shdw", False ApplyCns "Position", "startFalloff", "Point" CreatePrim "Sphere", "NurbsSurface", "endFalloff" SetValue "endFalloff.sphere.radius", 1 Scale , 15, 15, 15, siRelative, siGlobal, siObj, siXYZ MakeLocal "endFalloff.display", siNodePropagation SetValue "endFalloff.display.wirecol", 15 SetValue "endFalloff.visibility.rendvis", False SetValue "endFalloff.visibility.primray", False SetValue "endFalloff.visibility.scndray", False SetValue "endFalloff.visibility.shdw", False ApplyCns "Position", "endFalloff", "Point" SetAndToggleSelection "Point", , True SetValue "Point.light.LightExponent", 1 SetValue "Point.light.soft_light.atten", True AddExpr "Point.light.soft_light.start" SetExpr "Point.light.soft_light.start", "( startFalloff.kine.local.sclx + startFalloff.kine.local.scly + startFalloff.kine.local.sclx ) / 3" AddExpr "Point.light.soft_light.stop" SetExpr "Point.light.soft_light.stop", "( endFalloff.kine.local.sclx + endFalloff.kine.local.scly + endFalloff.kine.local.sclx ) / 3" SelectObj "endFalloff", "BRANCH" CopyPaste "B:endFalloff", , "B:Point", 1 SelectObj "startFalloff", "BRANCH" CopyPaste "B:startFalloff", , "B:Point", 1