THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/07/2003 at 08:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
here is a cosmetic problem concerning descriptions ...
I'm using descriptions for the user interface of a cartoon renderer, a video post effect. It offers several brush tools for the outlines. It should show only the top level group which belongs to the currently selected brush. The parameters of the other brushes should be invisible. This is very similar to the behavior of the standard material when you switch on/off some of its channels.
Up to now, I'm using VideoPost::Message to catch the MSG_DESCRIPTION_VALIDATE message. There, I retrieve the Description of the node and iterate through its DescEntrys. With GetDescEntry I fill a BaseContainer with the data of the Description. In this BaseContainer, I use SetBool(DESC_HIDE, ...) to hide or show a top level group.
This works so far. Groups appear and disappear controlled by the program. But: The group heading buttons above the description appear in a wrong state. Though the newly visible groups are shown fully unfolded, the respective button is shown on gray background, not white.
Any ideas? (How is this implemented in the standard material editor?)
Thank you very much!
Regards,
jl