nrosenstein-c4d / c4d-prototype-converter

A Cinema 4D plugin to convert plugin prototypes to actual Python plugins.
MIT License
26 stars 4 forks source link

Error with Linked Icon #11

Closed donovankeith closed 6 years ago

donovankeith commented 6 years ago

Possibly related to Issue #10

Saved settings to object "Stagger Animation".
Traceback (most recent call last):
  File "D:\Donovan\MAXON\plugins\c4d-prototype-converter\c4d_prototype_converter\plugin_main.py", line 895, in Command
    self.do_create()
  File "D:\Donovan\MAXON\plugins\c4d-prototype-converter\c4d_prototype_converter\plugin_main.py", line 787, in do_create
    cnv.create()
  File "D:\Donovan\MAXON\plugins\c4d-prototype-converter\c4d_prototype_converter\plugin_main.py", line 433, in create
    shutil.copy(self.icon_file, files['icon'])
NameError: global name 'shutil' is not defined

I ran into this when trying to convert the Python Expression tag in the attached file.

DelayAnimationExpression.zip

donovankeith commented 6 years ago

This is the icon file, it was saved on my Desktop.

Sphere.zip

A possible complicating factor is that I'm creating my plugin somewhere other than the default preferences location.

NiklasRosenstein commented 6 years ago

Yup, I forgot or accidentally removed the shutil import at some point.