On 28/01/2013 at 08:36, xxxxxxxx wrote:
Cinema 4D Version: R14
Language(s) : C++ ;
I'm trying to remove elements from the description of my object in ObjectData::GetDDescription()
when certain circumstances become TRUE. I couldn't find any way to remove elements, only
to obtain, modify or add in the Description class.
How can I remove a description element in GetDDescription(), or is this not possible?
On 28/01/2013 at 09:28, xxxxxxxx wrote:
I'm afraid it's not possible to remove description elements.
I think you should do it the reverse way: only add the description elements that are needed in GetDDescription().
On 28/01/2013 at 10:06, xxxxxxxx wrote:
This is very unfortunate. I'm wondering if it is possible to load two descriptions in GetDDescription(),
otherwise I need to create two resources and loading either the one or the other. Building the
description by hand is not really an option, the description has many elements.
Thanks for you answer,
On 28/01/2013 at 12:40, xxxxxxxx wrote:
You can hide an element, is that any good? Or show it again if required. You do this in GetDDescription(). So you would have just one resource and show or hide the relevant elements. If you place them in a group, you can hide the group element and that hides all the elements in it, so you don't need to iterate through all the elements in the description.
On 28/01/2013 at 18:37, xxxxxxxx wrote:
I went through this same thing a while back.
My QuickSteps example plugin does what Steve is talking about if you want to look at the code to get the idea.
Robert gave me a hand setting up all of the dynamic adding and hiding of the link boxes.
I'm using UserData for things like this now. Instead of descriptions.
Because UserData can be deleted.
On 29/01/2013 at 01:24, xxxxxxxx wrote:
I should also have said that I did a mini-tut for this a while back, you can find it at http://www.microbion.co.uk/graphics/c4d/cookbook-2.htm