Changing Desciption of Attributes
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/12/2010 at 08:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;---------
Hi,i've written an Plugin which creates its Descriptions from Ressourcefile.
My Problem is:
Is it possible to change the visibility of an attribute (in Ressourcefile "HIDDEN") on runtime?
I want to show or hide it in dependence of another attribute!Is this possible and if how?
Greetings
Ralf
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/12/2010 at 08:28, xxxxxxxx wrote:
NodeData plugins (ObjectData, TagData etc.) can overload GetDEnabling to enable/disable description elements. Basically it's called for every description element and depending if you return TRUE or FALSE it's enabled or disabled. Please check the SDK examples to see how it's used.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2010 at 00:31, xxxxxxxx wrote:
Hi,
yes i thought of that, but my problem is: this function isn't called!
My Syntax:Bool MyCameraTag::GetDEnabling(GeListNode* node, const DescID& id, GeData& t_data, LONG flags, const BaseContainer* itemdesc) { // My Code return TRUE; }
(in Header its virtual)
I couldn't find any difference between this function and the SDK function.I use Visual Studio C++ 2005
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2010 at 03:07, xxxxxxxx wrote:
Your declaration is wrong.
It must be:
virtual Bool GetDEnabling(GeListNode* node, const DescID& id, const GeData& t_data, LONG flags, const BaseContainer* itemdesc)
t_data must be const.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2010 at 04:04, xxxxxxxx wrote:
AHHH thanks,
i have looked in the SDK Documentation for R11 ==> were is no const
for R11.5 no .zip Documentation is available
and in R12 i see: const is needed.Ok that helps a lot.
Thanks for the fast help!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2010 at 06:51, xxxxxxxx wrote:
Is were any Chance to change the shown Name of the Attribute dynamical (not only on GetDDesciption?