Page 1 of 2

Plugin v1.09 AttributeError error

Posted: Tue Mar 15, 2011 2:21 pm
by danilius
Hi,

Yoyoz - belated happy birthday!

Got the following error and am stumped. Um, help?

========================
location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179
Octane plug-in v1.09 on 2.56.3.35537 : Rendering still image
Octane plug-in v1.09 on 2.56.3.35537 : Output ocs: "/home/dani/tests/test.ocs"
Octane plug-in v1.09 on 2.56.3.35537 : Output obj: "/home/dani/tests/test.obj"
Octane plug-in v1.09 on 2.56.3.35537 : Output mtl: "/home/dani/tests/test.mtl"
Octane plug-in v1.09 on 2.56.3.35537 : Unit Factor (rescaling): 1.0000
Octane plug-in v1.09 on 2.56.3.35537 : Exporting frame #1
Octane plug-in v1.09 on 2.56.3.35537 : Begin OBJ/MTL export
Octane plug-in v1.09 on 2.56.3.35537 : OBJ file: "/home/dani/tests/test.obj.temp"
Traceback (most recent call last):
File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/engine.py", line 97, in render
mtl_list = write_obj(objTemp, mtlFile, obj_list, scene, unitFactor)
File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/export.py", line 386, in write_obj
me = ob.create_mesh(scene, EXPORT_APPLY_MODIFIERS, 'RENDER')
AttributeError: 'Object' object has no attribute 'create_mesh'

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179

Re: Plugin v1.09 AttributeError error

Posted: Tue Mar 15, 2011 9:46 pm
by yoyoz
Hi Dani,

this is due to an API change that happened yesterday and affects only builds available since this morning. I'll publish a packaged update tomorrow but you can do the following in the meantime:
- edit export.py
- go to line 386
- replace 'create_mesh' with 'to_mesh'
Be carefull not to alter indentation when doing the modification.

Cheers,
Lionel

PS: thanks!

Re: Plugin v1.09 AttributeError error

Posted: Wed Mar 16, 2011 8:20 am
by danilius
Yoyoz, do you ever sleep?

I have no idea how you manage to keep pace with the changes in the API. Your dedication, however, is deeply appreciated; a sentiment which I'm sure every Blender head Octane user would echo.

Awesome stuff. Thanks a million, and more power to your elbow!

Re: Plugin v1.09 AttributeError error

Posted: Wed Mar 16, 2011 1:05 pm
by steveps3
I did try to see if I could find what was wrong. I couldn't see anything obvious.

Roll on 2.57. At least the API might stabilise then.

Re: Plugin v1.09 AttributeError error

Posted: Wed Mar 16, 2011 1:27 pm
by danilius
Hi,

I duly modified the file as instructed, and everything ran hunky dory until the console spat this out:

Code: Select all

Octane plug-in v1.09 on 2.56.3.35537 : Creating dupli_list on <dining table>
Traceback (most recent call last):
  File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/engine.py", line 97, in render
    mtl_list = write_obj(objTemp, mtlFile, obj_list, scene, unitFactor)
  File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/export.py", line 372, in write_obj
    ob_main.create_dupli_list(scene)
AttributeError: 'Object' object has no attribute 'create_dupli_list'

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179
Cheers.

Re: Plugin v1.09 AttributeError error

Posted: Wed Mar 16, 2011 4:17 pm
by yoyoz
This is same story again... (they're really turning me crazy...)

It should be OK if you do the following:
- go to line 372 of export.py and replace 'create_dupli_list' with 'dupli_list_create'
- in same file, line 702, replace 'free_dupli_list' with 'dupli_list_clear'

Please let me know if it works so I can package the update.
Thanks,
Lionel

Re: Plugin v1.09 AttributeError error

Posted: Wed Mar 16, 2011 5:33 pm
by mib2berlin
Hi, test your changes and work with Rev: 35575.

THX, mib

Re: Plugin v1.09 AttributeError error

Posted: Thu Mar 17, 2011 4:42 pm
by danilius
I am really sorry for the delay - my only excuse being that I am crazy busy at the moment, which always helps.

Just to confirm, your most recent edit works a charm.

How you stay sane with the constant changing and chopping of the API shall presumably remain a mystery.

Many thanks, and cheers!

Re: Plugin v1.09 AttributeError error

Posted: Thu Mar 17, 2011 5:15 pm
by yoyoz
Who said I was still sane? :-)

Re: Plugin v1.09 AttributeError error

Posted: Thu Mar 17, 2011 5:56 pm
by danilius
I offer my humblest apologies for making such an unwarranted assumption, and will endeavour to refrain from repeating the offence.

Do we, by some splendid coincidence, share hatters?