Did you mean: imageUi = cmds.image(image=pic()) ?
I forget how well an image ui object updates but have you tried just editing
the existing one?
cmds.image(imageUi, e=True, image=pic())
The image command doesnt accept a callable as a value. You have to edit it with
a new image. If for some reason the ui object just refresh well when being
edited, the 2nd option is to delete it and create a new one.
On Jun 9, 2012, at 7:31 AM, Matias Volonte <[email protected]> wrote:
> Hello everybody,
>
> I have a panel and in that panel I am displaying an image using
> cmds.image(name=pic() ) python parameter. The problem is that I want that
> image to update, reload or refresh according to what object I have selected.I
> wrote a function that does that but apparently cmds.image() does not accept
> it just ask for a straight image paht.
>
> if anyone can give me some kind of help will be appreciated, thanks.
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe