Real Time Rendering |
Switching off the Lights |
![]() |
This macro shows you how to switch off all the lights of a the current document.
|
||
![]() |
switchOFF_Ligths is launched in CATIA. An existing document called "TestLight.CATProduct" must be found in the CATDocView. It needs "Back.CATPart" and "Hole.CATPart". switchOFF_Ligths.CATScript is located in the CAAScdRscUseCases module. Execute macro (windows only).
|
||
![]() |
switchOFF_Ligths includes five steps:
Accessing the Collection of Documents
Access the collection of documents and test if it is not empty. [Top] Accessing the Product Document
Access the product document and test if it is really a CATProduct. [Top] |
||
Accessing the Root Product
[Top] |
|||
Accessing the Collection of Rendering Lights
[Top] |
|||
Switching off All the Lights
Going through the lights collection and switch off all. [Top] |
This use case has shown the way of going through a collection and how to change a parameter like the ActiveStatus.
[Top]
Copyright © 1994-2003, Dassault Systèmes. All rights reserved.