animation wb. outputting images to file

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
bzb.dev001
Posts: 98
Joined: Sun May 05, 2019 3:08 am

animation wb. outputting images to file

Postby bzb.dev001 » Mon Aug 12, 2019 3:08 pm

I'm following the instructions in http://freecadbuch.de/doku.php?id=anima ... e_schritte
I created a rotator to rotate an object using animation wb. Now I want to output the animation to a bunch of images to be converted to a video file. I've created the Photographer Dialog but have trouble configuring it to output images.

Something of note...
After using the Manager Dialog to create the My_Manager node in the model tree. Any attempt to select a function from the context menu (eg. About Manager, Edit, forward, backward, ping pong ) would result in error messages.

Selecting My_Manager context menu>About Manager...

Code: Select all

Traceback (most recent call last):
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 200, in showVersion
    PySide.QtGui.QMessageBox.information(None, "About ", "Animation" + cl +" Node\nVersion " + self.vers)
AttributeError: '_ViewProviderManager' object has no attribute 'vers'

Selecting My_Manager context menu>Edit...

Code: Select all

[['forward', <bound method _ViewProviderActor.animforward of <Animation._ViewProviderManager object at 0x7fcadf3ff518>>], ['backward', <bound method _ViewProviderActor.animbackward of <Animation._ViewProviderManager object at 0x7fcadf3ff518>>], ['ping pong', <bound method _ViewProviderActor.animpingpong of <Animation._ViewProviderManager object at 0x7fcadf3ff518>>]]
Traceback (most recent call last):
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 220, in edit
    self.dialog=EditWidget(self,self.emenu + anims,False)
  File "/home/wt/.FreeCAD/Mod/animation/EditWidget.py", line 68, in __init__
    _EditWidget.__init__(self, True, obj,menu,noclose,*args)
  File "/home/wt/.FreeCAD/Mod/animation/EditWidget.py", line 31, in __init__
    dial.valueChanged.connect(obj.dialer)
AttributeError: '_ViewProviderManager' object has no attribute 'dialer'
Selecting My_Manager context menu>Forward...

Code: Select all

Traceback (most recent call last):
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 256, in animforward
    self.obj2.time=float(i)/100
AttributeError: '_ViewProviderManager' object has no attribute 'obj2'

Selecting My_Manager context menu>Backward...

Code: Select all

Traceback (most recent call last):
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 264, in animbackward
    self.obj2.time=float(100-i)/100
AttributeError: '_ViewProviderManager' object has no attribute 'obj2'
Selecting My_Manager context menu>Ping pong...

Code: Select all

Traceback (most recent call last):
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 270, in animpingpong
    self.animforward()
  File "/home/wt/.FreeCAD/Mod/animation/Animation.py", line 256, in animforward
    self.obj2.time=float(i)/100
AttributeError: '_ViewProviderManager' object has no attribute 'obj2'
Same issue with all the animation wb objects added to the model tree.

FreeCAD details
------------------
OS: Ubuntu 18.04.3 LTS (LXDE/Lubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17512 (Git) AppImage
Build type: Release
Branch: master
Hash: 7b315d3a15f6c0a3e796b2bf000cb791092de079
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)


Any help greatly appreciated.
Attachments
sample-animation 1obj.FCStd
(4.85 KiB) Downloaded 6 times
bzb.dev001
Posts: 98
Joined: Sun May 05, 2019 3:08 am

animation wb: cannot create placer

Postby bzb.dev001 » Mon Aug 12, 2019 3:30 pm

I created a solid and then switched into Animation wb to create a Placer. When doing so results in an error message.

Code: Select all

Animation workbench deactivated
Animation workbench activated
Running the Python command 'Anim_Placer' failed:
Traceback (most recent call last):
  File "<string>", line 74, in Activated
  File "<string>", line 1, in <module>

name 'reload' is not defined

FreeCAD detail
-----------------
OS: Ubuntu 18.04.3 LTS (LXDE/Lubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17512 (Git) AppImage
Build type: Release
Branch: master
Hash: 7b315d3a15f6c0a3e796b2bf000cb791092de079
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
chrisb
Posts: 17585
Joined: Tue Mar 17, 2015 9:14 am

Re: animation wb. outputting images to file

Postby chrisb » Mon Aug 12, 2019 3:57 pm

Microelly is the author of Animation workbench
microelly wrote:ping
bzb.dev001
Posts: 98
Joined: Sun May 05, 2019 3:08 am

Re: animation wb. outputting images to file

Postby bzb.dev001 » Mon Aug 12, 2019 4:50 pm

How do I ping someone using this forum?
TheMarkster
Posts: 1055
Joined: Thu Apr 05, 2018 1:53 am

Re: animation wb. outputting images to file

Postby TheMarkster » Mon Aug 12, 2019 6:11 pm

(without the space after the first bracket)
[ quote=bzb.dev001 user_id=25224]
ping
[/quote]
bzb.dev001
Posts: 98
Joined: Sun May 05, 2019 3:08 am

Re: animation wb. outputting images to file

Postby bzb.dev001 » Thu Aug 15, 2019 12:25 pm

I'm going to log this as a bug. Any objections?
chrisb
Posts: 17585
Joined: Tue Mar 17, 2015 9:14 am

Re: animation wb. outputting images to file

Postby chrisb » Thu Aug 15, 2019 12:38 pm

bzb.dev001 wrote:
Thu Aug 15, 2019 12:25 pm
Any objections?
Yes!
Animation workbench is not part of FreeCAD, it is an addon. Perhaps you can discuss this issue on the homepage of the animation workbench, but the FreeCAD bugtracker sure is the wrong place. And I would guess that microelly2 would not be aware of an issue there.
User avatar
Kunda1
Posts: 5219
Joined: Thu Jan 05, 2017 9:03 pm

Re: animation wb. outputting images to file

Postby Kunda1 » Thu Aug 15, 2019 2:29 pm

Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
TheMarkster
Posts: 1055
Joined: Thu Apr 05, 2018 1:53 am

Re: animation wb. outputting images to file

Postby TheMarkster » Fri Aug 16, 2019 10:48 pm

Possibly it is a python3 issue. Try one of the python2 builds of FreeCAD.
bzb.dev001
Posts: 98
Joined: Sun May 05, 2019 3:08 am

Re: animation wb. outputting images to file

Postby bzb.dev001 » Sun Aug 18, 2019 3:54 pm

Can you direct me to the download location. I'm using Ubuntu.
I couldn't find any binary downloads. I looked at ...
https://github.com/FreeCAD/FreeCAD
https://www.freecadweb.org/wiki/Download
https://github.com/FreeCAD/FreeCAD/releases
TheMarkster wrote:
Fri Aug 16, 2019 10:48 pm
Possibly it is a python3 issue. Try one of the python2 builds of FreeCAD.