Maya Scripts
Script Details
Sun Simulator 1.71
Author: TOI, T Welman
Date: 2007-11-07
Synopsis:
This script calculates the altitude and azimuth for the sun for any given date, time and location. It can automatically rotate a directional light for you. It can also be used to create animations of the solar transit.
Tip: This script is part of the TOI Maya Toolbox. It's a collection of scripts with an easy-to-use installer.
The TOI Toolbox is available for download from our general downloads page.
Usage:
1. Load the script (source script)
2. Launch the interface using the command: toi_sunSim();
3. Select the directional light to be used (optional)
4. Enter location and date and time
You have to manually select if Daylight Saving Time is in effect!
This script assumes a default directional light, resulting in the negative Z-axis pointing northward, but you can use the Orientation section to re-orient (and display a north arrow)
2. Launch the interface using the command: toi_sunSim();
3. Select the directional light to be used (optional)
4. Enter location and date and time
You have to manually select if Daylight Saving Time is in effect!
This script assumes a default directional light, resulting in the negative Z-axis pointing northward, but you can use the Orientation section to re-orient (and display a north arrow)
Script:
sun_simulator.mel Download
- View source
Keywords:
sun, simulation, simulator, sunsim, directional, azimuth, altitude, rotation
Reactions
Messages 1 - 20 (28)
- ooJpiued
2019-05-23 07:26:211 - ooJpiued
2019-05-23 07:26:121 - ooJpiued
2019-05-23 07:26:111 - ooJpiued
2019-05-23 06:04:011 - ooJpiued
2019-05-23 06:03:471 - ooJpiued
2019-05-23 06:03:451 - GRLpGpAG
2019-05-11 06:35:421 - GRLpGpAG
2019-05-11 06:35:231 - GRLpGpAG
2019-05-11 06:35:211 - GRLpGpAG
2019-05-11 06:29:071 - GRLpGpAG
2019-05-09 08:13:221 - GRLpGpAG
2019-05-09 08:13:031 - GRLpGpAG
2019-05-09 08:13:021 - zFPWdwPk
2019-05-08 08:26:331 - zFPWdwPk
2019-05-08 08:26:191 - zFPWdwPk
2019-05-08 08:26:171 - Breda
2018-10-08 10:30:28Hi,
Problem is solved. I've had other errors like "toi_sunSim(); not found" so I've searched and I finally found that the culprit was the Enter or Return keys. I clicked on the blue arrow icon 'run script" in the mel window and it worked fine !
Thanks again for your work. - Breda
2018-10-05 17:52:46Hi,
Thanks for your work.
I get the message "Error: line 728: Cannot find procedure "toi_sunSim_applyToLight"
although I can see a global procedure in the mel script. Is there a turnaround to help the script in finding it?
OsX Sierra, Maya2013
Thanks - Thijs
2011-01-07 17:21:51Version 1.6 fixes a Maya 2011-specific bug in the animation interface of the Sun Simulator. - Marko
2009-12-15 16:47:52Het is gelukt.
Bedankt Thijs.
Marko
previous
-
next