On 08/08/2013 at 16:29, xxxxxxxx wrote:
Quick question that I'm banging my head trying to figure out today:
Can I create an xref within an object plugin?
Here's a snippet of what I have:
xrefName = myData.GetData(11000)
baseNull = c4d.BaseObject(c4d.Onull)
myXref = c4d.BaseObject(c4d.Oxref)
myXref.InsertUnder(baseNull)
myXref[c4d.ID_CA_XREF_FILE] = xrefName
c4d.EventAdd()
return baseNull
The xref does not show up inside my plugin when I make it editable.
Any idea of what I am doing wrong, or if I can even access an xref in a plugin?
Thanks,
David