Real Time Rendering |
Switching on and off All the Lights' Shadows of a Product |
![]() |
This macro shows you how to switch off the shadows of a the current document, and how to switch them on again.
|
||
![]() |
switch_LightsShadows is launched in CATIA. An existing document called "TestLight.CATProduct" must be found in the CATDocView. It needs "Back.CATPart" and "Hole.CATPart". switch_LightsShadows.CATScript is located in the CAAScdRscUseCases module. Execute macro (windows only).
|
||
![]() |
switch_LightsShadows includes three steps:
At first, this macro test if a document is active in CATIA and if this document is a CATProduct. Then it access to the valid root document and to the collection of rendering lights. After that the macro tests if the knowledge parameter exists. This parameter is used in order to remember which shadow was active. [Top] Switching off Shadows
The macro deactivates lights' shadows on environments and on objects. And it creates the string to be saved by the parameter. [Top] |
||
Switching on Shadows
The macro reactivates lights' shadows on environments and on objects. And it destroys the parameter. [Top] |
This use case presents a macro which can be usefull for the demos with CATIA. It gives the possibility to deactivate the lights' shadows on environments and on objects, and the ability to reactivate only thoses which where ON.
[Top]
Copyright © 1994-2003, Dassault Systèmes. All rights reserved.