v7.5
Returns all DataSource objects connected to this parameter in a DataSourceCollection. The collection is filled from the most significant source (the source driving the current parameter value) to the least significant. In the case where you do have a DataSource the first element of the collection returned by Parameter.Sources is the same as the element returned by Parameter.Source. For more information on sources, see Parameter.Source.
# # This example shows how to access all sources on a parameter. # from win32com.client import constants xsi = Application myNull = xsi.ActiveSceneRoot.AddNull("myNull"); posx = myNull.posx; posx.AddFCurve(); xsi.AddAnimationLayer("Scene_Root","",1); xsi.SelectObj("myNull", "", True) xsi.Translate("", 0, 1.02887578257936, 0, "siRelative", "siGlobal", "siObj", "siXYZ", "", "", "", "", "", "", "", "", "", 0, ""); Application.SaveKey("myNull.kine.local.posx", 1, "", "", "", False, "") sources = myNull.PosX.sources; for source in sources: xsi.LogMessage( "Source: " + str(source.FullName) ) # Expected results # INFO : Source: Mixer # INFO : Source: FCurve |