Page 1 of 1

Tackball error after compressing textures

Posted: Sat Dec 07, 2013 5:33 pm
by morphious2013
Since Octane won't recognize all 4gb of my card, I tried the python script to compress textures and got this error.

Traceback (most recent call last):
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 360, in <module>
w = CompressTexturemaps()
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 57, in __init__
self.EventPropChange(None)
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 142, in EventPropChange
self.fillMaterialsList(f)
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 87, in fillMaterialsList
self.findAllImageFiles(propFigure)
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 114, in findAllImageFiles
self.scanForTexture(node, "diffuse")
File "C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py", line 264, in scanForTexture
scanForTexture(inputs.InNode(), type)
NameError: global name 'scanForTexture' is not defined

Any ideas?

Re: Tackball error after compressing textures

Posted: Sat Dec 07, 2013 10:38 pm
by face_off
I will fix this in the next 24hrs.

Paul

Re: Tackball error after compressing textures

Posted: Sun Dec 08, 2013 4:10 am
by face_off
I am in the middle of of major modifications to the Poser plugin, so will not be able to release a fix for this as an entire update to the plugin until Monday. However you can fix it yourself very easily. Edit C:\Program Files\Smith Micro\Poser Pro 2014\Runtime\Python\poserScripts\ScriptsMenu\OctaneRender for Poser\Compress Texture Maps.py.

Change the line 265 from:

Code: Select all

                    scanForTexture(inputs.InNode(), type)
to

Code: Select all

                    self.scanForTexture(inputs.InNode(), type)
(ie. add a "self." to the start of the line).

Make a backup of the old file first. Give yourself write-access to that file first, otherwise Windows will not allow you to edit it.

The above fix will be in the next version of the plugin.

Paul

Re: Tackball error after compressing textures

Posted: Sun Dec 08, 2013 3:09 pm
by morphious2013
Thanks Paul. I'll give it a shot.