Hi Guys,<br><br>Just to be honest from the start, I am a .NET/Python newbie, I&#39;m at home in standard C++ so please bare with me!<br><br>Bascially an application that I am trying to script (FX Composer) uses IronPython. One of the .NET methods exposed into python bares the following signature:<br>
<br>public void LoadRawData(byte[] bytes, int width, int height, int depth, FXComposer.Scene.FXFormat format, FXComposer.Scene.Effects.FXSurfaceType type)<br><br>Now, my problem lies in passing information into that function in the form of &quot;byte[]&quot;.<br>
How can I generate a value that this function will accept in that spot?<br><br>I have tried the following:<br>img.LoadRawData([255,255,255,0,0,0,0,0,0,255,255,255], 2, 2, 3, FXFormat.R8G8B8, FXSurfaceType.Surface2D)<br><br>
But it complains with the following error:<br>TypeError: expected Array, got list<br>CLR Exception: <br>&nbsp;&nbsp;&nbsp; ArgumentTypeException<br>: <br>expected Array, got list<br><br>So I assume I have to create an array somehow... But I don&#39;t know how!<br>
<br>Any help you guys can give me would be fantastic, and any suggestions of places where I might find relevant documentation on these issues (CLR type conversion to Python types, etc) I would be grateful for your advice. <br>
<br>Thanks for your time<br><br>Josh<br>