pymel.core.rendering.pointLight

pointLight(*args, **kwargs)

The pointLight command is used to edit the parameters of existing pointLights, or to create new ones. The default behaviour is to create a new pointlight.

Maya Bug Fix:
  • name flag was ignored

Flags:

Long Name / Short Name Argument Types Properties
decayRate / d int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  decay rate of the light (0-no decay, 1-slow, 2-realistic, 3-fast)
discRadius / drs float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  radius of the disc around the light
exclusive / exc bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag is obsolete.
intensity / i float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  intensity of the light (expressed as a percentage)
name / n unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  specify the name of the light
position / pos float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag is obsolete.
rgb / rgb float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  color of the light (0-1)
rotation / rot float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag is obsolete.
shadowColor / sc float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  the shadow color
shadowDither / sd float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  dither the shadow
shadowSamples / sh int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  number of shadow samples.
softShadow / ss bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  soft shadow
useRayTraceShadows / rs bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  ray trace shadows Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.pointLight

Example:

import pymel.core as pm

pm.pointLight()
# Result: nt.PointLight(u'pointLightShape1') #