Adding if statement to .res descriptions.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 05/08/2011 at 15:10, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   12 
Platform:   Windows  ; Mac  ;  
Language(s) :   C.O.F.F.E.E  ;  C++  ;  XPRESSO  ;  PYTHON  ;

---------
hey! just wondering if it is "legal" to add if statements to .res descritotion files for a custom plugin. The reason i ask is because im trying to figure out the best way to make a attribute of an object plugin disappear and appear based upon what other attributes are turned on and off. (for example, a boolean switch will display and hide a menu within the plugin). if this is not a good idea, mabye someone could point me in the right direction. Thanks for the help in advance guys!
_Alex

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 05/08/2011 at 15:26, xxxxxxxx wrote:

No.

To do what you want to do involves using dynamic descriptions through the plugin's GetDDescription() method.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/08/2011 at 08:31, xxxxxxxx wrote:

Robert,

Do you happen to have an example of that?
I can't picture how to do this in my head.

-ScottA

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/08/2011 at 12:56, xxxxxxxx wrote:

I think i saw some info in the C++ API docs about dynamic descriptions. thanks for the answer! and if anyone has an example, it would definitely be helpful!

edit:

found something in the 
_
_
lib_description.h
_
_
file.

if you look up dynamic descriptions in the API you can also find a bunch of cool stuff. thanks guys!

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/08/2011 at 14:19, xxxxxxxx wrote:

As it happens, today I did a short tut on exactly this on my site. You can find it here: http://www.microbion.co.uk/graphics/c4d/cookbook-2.htm

Should give you all you need to make this work.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/08/2011 at 15:37, xxxxxxxx wrote:

Thanks for the tutorial Steve.:thumbsup:

I have a tag plugin I made using a bunch of common tasks that I use as a reference for how to set up the various GUI items. And I'm going to add this to it.

-ScottA

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/08/2011 at 01:30, xxxxxxxx wrote:

Cheers Scott. Glad you found it useful. (I write these for my own benefit as much as anyone's - I can never remember the exact steps to take when I need to do something like this for a new plugin.)