playing animated gif using pyqt in softimage

415 views
Skip to first unread message

Angeline

unread,
Jul 2, 2013, 4:31:00 AM7/2/13
to soft...@listproc.autodesk.com

Hi,

I'm having some troubles with trying to play animated gifs using QMovie attached a QLabel in a dialog in Softimage.

I'm using the setMovie() in QLabel to display the animated gif.

When I ran the plugin, the window is empty despite starting the movie on load. The same set of codes works when I ran it using python shell without the Softimage plugin codes.

Thanks
Angeline

Junior TD
One Animation

philipp.oeser

unread,
Jul 2, 2013, 4:41:35 AM7/2/13
to soft...@listproc.autodesk.com
Hi Angeline,
 
I recently had problems displaying image formats other then pngs as well [was a thread on this mailinglist called "PyQT for Softimage: problem with image formats? (was: problem with QIcons)"].
 
You could try adding the PyQt image plugins (e.g. qgif4.dll) "by hand" like this:
======================================
...
sianchor = Application.getQtSoftimageAnchor()
 
# now add the libs by hand
QtGui.QApplication.instance().addLibraryPath('/pathtopy/sitepackages/PyQt4/plugins')
 
sianchor = sip.wrapinstance( long(sianchor), QWidget )

oDialog = QDialog(sianchor)

...
======================================
 
Hope this helps? (Not sure if solves the animated gif thing, it sure solved displaying jpgs etc.)
 
 
 
Angeline <ange...@oneanimation.com> hat am 2. Juli 2013 um 10:31 geschrieben:

 














































nhb
 Philipp Oeser
 Pipeline Engineer
 T+49 40 - 450 120 - 401
 www.nhb.de
 

nhb video GmbH | nhb ton GmbH

Alsterglacis 8 | 20354 Hamburg

 nhb video GmbH, HRB 61617
Geschäftsführer: Michael Vitzthum, Matthias Rewig
nhb ton GmbH, HRB 73877
Geschäftsführer: Michael Vitzthum, Matthias Rewig
 dolbynhb is Dolby approved
 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Das unerlaubte Weiterleiten dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. Any unauthorised disclosure of the material in this e-mail is forbidden.

Cristobal Infante

unread,
Jul 2, 2013, 5:04:39 AM7/2/13
to soft...@listproc.autodesk.com
Does it work if you use a normal jpg? 

I ran into a similar problem where the path of the image was the problem.

When using python you need to use double slash for paths.


Angeline

unread,
Jul 2, 2013, 5:46:58 AM7/2/13
to soft...@listproc.autodesk.com
it's working now thanks.


Regards
Angeline

Junior TD
One Animation
Reply all
Reply to author
Forward
0 new messages