trying to attach nodes to a customAttribute
first setup using maxscript
CA = attributes CAdata
(
parameters main
(
nodeRefs type:#maxObjectTab tabSize:0 tabSizeVariable:true
)
)
CustAttributes.add $Point001 CA
$Point001.nodeRefs
then attached a node using python
node = MaxPlus.INode.GetINodeByName('Point001')
nodeREF = MaxPlus.INode.GetINodeByName('Teapot001')
node.BaseObject.GetCustomAttributeContainer()[0].GetParameterBlock().nodeRefs.Value.Append(nodeREF)
#I also tried
node.BaseObject.GetCustomAttributeContainer()[0].GetParameterBlock().nodeRefs.Value.Append(nodeREF.GetReference(1))
#both of these return #success
but when I do “GetCount()” on the customAtt it returns 0 and I can see it hasn’t actually attached the node