Ok Thanx, so we have the same version currently, can you try this code ( It's VBScript ):
Code:'---------------------------------------------------------
' This example shows how to add an image clip from an image source.
'---------------------------------------------------------
option explicit
' First, add an image source.
Dim oSourceObj, ImageFile
ImageFile = Application.InstallationPath( siFactoryPath ) & "/Data/XSI_SAMPLES/Pictures/xsilogo.jpg"
SIAddImageSource ImageFile, "XSIlogo", oSourceObj
' Now create an image clip from the image source.
Dim oClipObj
SIAddImageClip oSourceObj, "XSIlogo_Clip", oClipObj
' Now output some information about the clip, and its source.
Dim SourceName, SourceFile, XRes, YRes
SourceName = GetValue( oClipObj & ".Source.Name" )
logmessage oClipObj & " Source : " & CStr(SourceName)
SourceFile = GetValue( oClipObj & ".SourceFileName" )
logmessage oClipObj & " Source File : " & CStr(SourceFile)
XRes = GetValue( "Sources." & SourceName & ".XRes" )
logmessage oClipObj & " X Resolution : " & CInt(XRes)
YRes = GetValue( "Sources." & SourceName & ".YRes" )
logmessage oClipObj & " Y Resolution : " & CInt(YRes)
It's taken from the SDK Documentation and was'nt working for me :|
KS