load viewport background
I made a little script which create a Attribute holder.
It store camera properties (height and width) so when I switch to another camera, I can click "apply" and retrieve camera parameters.
I would like to make the same thing for viewport background.
I wrote in the rollout :
editText edt_path "Background Image:" labelOnTop:true
and then when I want to apply
backgroundimagefilename = edt_path as Filename
but for eg backgroundimagefilename ="e:/x.jpg" is ok.
Somebody can help converting edt_path to something which can work ?