• Help Home
  • Quick Links
    • What's New
    • Release Notes
    • Essential Skills Video Tutorials
    • Essential Concepts
    • The Alias Workspace
    • Keyboard Shortcuts
    • Subdivision Modeling tutorials
  • English (US)
    1. English (US)
    2. 简体中文
    3. 日本語
    4. 한국어
Alias 2026
    • Alias What's New
      • What's New in Alias 2026
      • What's New in Previous Releases
    • Alias Release Notes
    • Tutorials
    • Interface Reference
    • Tool Palette Reference
    • Menus Reference
    • File Format Reference
    • VRED Renderer
    • Live Referencing
    • Alias Dynamo User Guide
    • Flow Production Tracking for Automotive Design
    • Form Explorer for Alias User Guide
    • Environment Variables
    • Alias Programmers’ Interfaces (API)
      • Adding your plug-in to the UI
      • Building Options Boxes
      • Building the included examples
      • Class reference
      • Compiling and linking
      • Implementation Details
      • Introduction
      • Plug-in API Examples
      • Setting up plug-ins
      • The universe and its objects
      • Using OpenAlias
      • Using the API
        • Sharing Code between OpenModel and OpenAlias
        • Determining the Position of an Instance
        • Getting clustered position
        • Using AlUniverse::redrawScreen
        • Iterating Over Objects
        • Iterators and AlObjects
        • Cleaning up Lost Wrappers
        • Invalidating Wrappers
        • Wrappers, Destructors, and Deleting Objects
        • Copying Wrappers
        • How to invoke your OpenModel applications
        • Receiving Messages
        • Picking Objects
        • Setting Light Direction
        • Creating and Deleting Keyframes
        • Closed Forms
        • Detecting the Escape Key
        • Making your code run faster
        • Using view frames
      • Writing a plug-in
    • Alias Installation
    • Legacy Getting Started
    1. Alias Programmers’ Interfaces (API)
    2. Using the API
    3. Setting Light Direction
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn

    Setting Light Direction

    Setting the direction of a light can be accomplished using the setDirection() method in the AlDirectionLight and AlSpotLight classes.

    Parent page: Using the API

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved