THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 07:37, xxxxxxxx wrote:
Cinema 4D Version: 10.5
Language(s) : C++ ;
after a lot of serch, i don't understand if and how is possible store a container in a tag container.
in particular in my tagplugin i have a baselist2d link and i want to store the linked element container in my tag container.
can anyone help me ?
On 24/08/2008 at 09:22, xxxxxxxx wrote:
Get a unique plugin ID to use for the sub container and then do this:
where 'mbc' is the linked element container. You'll need to get tagBC from the tag using:
BaseContainer* tagBC = myTag->GetDataInstance();
On 24/08/2008 at 10:49, xxxxxxxx wrote:
Thank you Robert,
i'll try tonight
thanks a lot
On 24/08/2008 at 13:18, xxxxxxxx wrote:
now my code is :
BaseContainer * Tdata = tag->GetDataInstance();
BaseList2D* item = Tdata->GetLink(IDC_TTAKEOVER_ITEM,doc,0);
BaseContainer *itembc = item->GetDataInstance();
But, compiler tel me :
'BaseContainer::SetContainer' : cannot convert parameter 2 from 'BaseContainer *' to 'const BaseContainer &'
sorry i know i am a beginner
On 24/08/2008 at 14:41, xxxxxxxx wrote:
ok i find my error, * befor item in set container.
Thanks for help
On 24/08/2008 at 16:19, xxxxxxxx wrote:
Yes, that was it.
On 25/08/2008 at 00:41, xxxxxxxx wrote:
ok now i have a new question
I read that some object in Cinema Don't store data in container (for example Olight), and i must to use Get/SetParameter to work with this object.
Is there a way to collect all parameter of an object or i shoul to get/setParameter for each of this?
On 25/08/2008 at 00:50, xxxxxxxx wrote:
I am not sure what you mean with collecting all paramters.
On 25/08/2008 at 00:59, xxxxxxxx wrote:
Sorry My english is not very good.
If Object use container i can copy all parametre with CopyTo function to another object or tag.
My question is can i make somthink like this with Object like light or i must to set evry sigle parameter?
Thanks a Lot