store container in tag container
-
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:
User Information:
Cinema 4D Version: 10.5
Platform:
Language(s) : C++ ;---------
Hello all,
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 ?
thanks
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 09:22, xxxxxxxx wrote:
Get a unique plugin ID to use for the sub container and then do this:
tagBC->SetContainer(ID_MASTERSLAVE, mbc);
where 'mbc' is the linked element container. You'll need to get tagBC from the tag using:
BaseContainer* tagBC = myTag->GetDataInstance();
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 10:49, xxxxxxxx wrote:
Thank you Robert,
i'll try tonight
thanks a lot
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 13:18, xxxxxxxx wrote:
ok,
now my code is :BaseContainer * Tdata = tag->GetDataInstance();
BaseList2D* item = Tdata->GetLink(IDC_TTAKEOVER_ITEM,doc,0);
BaseContainer *itembc = item->GetDataInstance();
Tdata->SetContainer(ID_SUB,itembc);
But, compiler tel me :
'BaseContainer::SetContainer' : cannot convert parameter 2 from 'BaseContainer *' to 'const BaseContainer &'
sorry i know i am a beginner
Thanks
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 14:41, xxxxxxxx wrote:
hello all,
ok i find my error, * befor item in set container.
Thanks for help
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2008 at 16:19, xxxxxxxx wrote:
Yes, that was it.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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?
Thanks
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/08/2008 at 00:50, xxxxxxxx wrote:
I am not sure what you mean with collecting all paramters.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/08/2008 at 00:59, xxxxxxxx wrote:
hello Matthias,
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
Franz