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 21 - 28 (28)
- Thijs
2009-12-15 16:20:26Script Editor: File > Source Script
(Of als je Open Script heb gedaan het hele script selecteren en dan ctrl+enter om het uit te voeren)
Of, zoals gezegd, de TOI Toolbox installeren... - Marko
2009-12-15 16:12:22Denk het wel. SUNSIM gedownload opgeslagen in mijn documenten map. Daarna klik ik op Script Editor->File ->Load Script-> selecteer het bestand -> Save Script-> en daarna als ik in MEL toi_sunSim(); intypt krijg ik ERROR melding // Error: Cannot find procedure "toi_sunSim". //
// Error: Select the text that you wish to save. //
:)
Marko - Thijs
2009-12-14 12:10:32Het script zou zonder problemen onder Maya 2009 moeten werken. Weet je zeker dat je het script goed ingeladen hebt?
Gebruik anders de TOI Toolbox. Dan weet je zeker dat het script juist geinstalleerd wordt. - Marko
2009-12-14 11:53:25Hey Thijs,
Het lukt me niet op SUNSIM te gebruiken voor Maya 2009. Script heb ik geupload maar als ik toi_sunSim() intypt krijg ik error. Hoe kan dat? - Thijs
2009-06-02 16:46:07Ik denk dat je nog een oude versie van het script gebruikt(e). Ik kan het probleem in elk geval niet reproduceren. In een update die ik een paar maanden geleden heb gemaakt, heb ik een paar syntax updates specifiek voor OS X gemaakt (Bij OSX gaf het inladen van het script als een foutmelding). - ivan
2009-04-09 12:07:49Hoi, ik krijg de foutmelding:
Cannot find procedure "toi_sunSim_applyToLight
Als ik op Orient Light druk.
Wat zou het probleem kunnen zijn? Ik werk in Maya 2008 Mac OSX - Thijs
2008-12-16 03:05:23Version 1.5 adds more advanced animation options, allowing you to do timelapses (daily transits) for various intervals and periods. - Thijs
2008-01-21 23:06:32Version 1.4 adds an optional north arrow to the light, which makes it easy to re-orient the north.
previous
-
next