Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Cleaning and populating cycle control in runtime

 Post Reply Post Reply
Author
Message
Motiva View Drop Down
Member
Member


Joined: 2016 Feb 03
Online Status: Offline
Posts: 44
Post Options Post Options   Quote Motiva Quote  Post ReplyReply Direct Link To This Post Topic: Cleaning and populating cycle control in runtime
    Posted: 2017 Sep 04 at 5:07am

User Information:

Cinema 4D Version:   R16 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

I've been reading examples etc but I'm wondering how I can clean and populate Cycle controls (I'm using CUSTOMGUI_CYCLEBUTTON) on runtime.

I have follow this article without problem https://c4dprogramming.wordpress.com/2013/05/10/the-cyclebutton-customgui/

But it is called on GetDDescription and I need to  modify it from time to time.


Any tip on this?

Regards.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1540
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Sep 05 at 7:29am
Hi,

actually GetDDescription() is the correct place to do this. GetDDescription() is not called only once, but all the time C4D needs to rebuild/update the Attribute Manager, for example in reaction to parameter changes.

Please also note the manual on NodeData::GetDDescription().

Maybe also take a look at this thread, where this topic got discussed recently.

The article linked in the previous post is also available on developers.maxon.net, probably the more persistent link. We transferred all content from c4dprogramming to the developer blog.

Edit: Added link to other thread.


Edited by Andreas Block - 2017 Sep 05 at 8:16am
Cheers,
Andreas
SDK Support Engineer
Back to Top
Motiva View Drop Down
Member
Member


Joined: 2016 Feb 03
Online Status: Offline
Posts: 44
Post Options Post Options   Quote Motiva Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Sep 15 at 3:04am
Thank you!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.