Cloning/copying render-data without inheritance

On 11/05/2017 at 00:28, xxxxxxxx wrote:

Hey guys.

I'm trying a little bit to automate some render-settings and takes. And I stumbled upon the inheritance behaviour of render-data. Is there a way in python to active or deactive inheritance in specific attributes of the render-data (for example I need to activate the inheritance on the frame range in the output panel)? I didn't find anything about it in the SDK 😞

Thanks and cheers,
Phil

On 11/05/2017 at 01:55, xxxxxxxx wrote:

Take a look at this thread for inserting render data
https://plugincafe.maxon.net/topic/9898/13335_solvedcreate-new-renderdata&KW=

About take system which is global and can work on everything. Take a look at
https://github.com/PluginCafe/cinema4d_py_sdk/tree/master/scripts/takesystem
https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.modules/takesystem/index.html?highlight=takes#module-c4d.modules.takesystem

And the C++ manual (maybe read this one firstly)
https://developers.maxon.net/docs/Cinema4DCPPSDK/html/page_overview_takesystem.html
https://developers.maxon.net/docs/Cinema4DCPPSDK/html/page_manual_takedata.html#page_manual_takedata_takes_create

If you have any others question feel free to ask

On 11/05/2017 at 03:19, xxxxxxxx wrote:

Thanks for the helpful links, sadly I can't find anything concering the inheritance problem 😞

On 15/05/2017 at 09:49, xxxxxxxx wrote:

Hi 3Dpebble,

welcome to the Plugin Café forums 🙂

Unfortunately I have no good news for you. The inheritance is handled internally and can not be accessed via the API. Sorry.

On 15/05/2017 at 23:44, xxxxxxxx wrote:

Hi Andreas,

that's a pity, but thank you very much for the info.

On 16/05/2017 at 00:49, xxxxxxxx wrote:

A workaround can be to register your own MessageData plugin. Catch EVMSG_TAKECHANGED and then found your take. Get the parent take value. And assign value to your take where BaseOverride is not set.

Remember a BaseTake is a BaseList2D, so it's mean he get a BaseContainer. So you can store data into this BaseContainer for identifying your take.