I need to assign datalinq to published objects. It works fine so far for text objects with the following script:
dim takeItem as xpTakeItem
dim template as xpPublishedObject
dim dl as xpDatalinq
engine.Sequencer.GetFocusedTakeItem(takeItem)
takeItem.GetPublishedObjectByName("PUBLISHED OBJECT NAME", template)
template.GetDatalinq(0,dl)
dl.LinkName = "NAME OF DATASOURCE"
dl.Column = "COLUMN NAME"
dl.Row = 88
dl.Table = "TABLE NAME" & "$"
template.SetPropertySourceType(0, 1)
But this does not work when assigned to a quad for changing the material.
I works when I enter the Datalinq manually but the script does not assign to the object.
Any ideas what I am doing wrong?
------------------------------
Bernhard Aschenwald
------------------------------