THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/03/2011 at 12:15, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ; PYTHON ;
---------
Hi, I am stuck with this problem :
using a coffee tag i want to find "myself"! (my tag, the tag which runs the code)
main(doc,op)
{
var myTag;
myTag = op->GetFirstTag();
while (myTag)
{
myTag = myTag->GetNext();
// now how do I find myself???
// how do I know which myTag is me, the tag this code is running in?
// there might be even 2 instances of this coffee tag on the object :P
}
}
somehow it must be possible to find "myself"
i need it because i have userdata on the coffee tag which i want to access
and i want to be able to have 2 or more of my tags on an object and still find the correct userdata
(the userdata of the tag whose code is actually executed)
so using the tags name or id probably wont work because it is the same if i have 2 instances of the tag
anybody with help on this?
if not in coffee maybe for a pyhon tag
thanks steve coffee tag