3DLIRIOUS / MeshLabXML

Create and run MeshLab XML scripts with Python
GNU Lesser General Public License v2.1
202 stars 43 forks source link

module 'meshlabxml' has no attribute 'FilterScript' #34

Open MohamadZohoori opened 2 years ago

MohamadZohoori commented 2 years ago

Hi,

I used to work with meshlabserver in my script and there were no error in code and I was able to get the desired output. But now after 1 year of not using the very same script, I end up facing this error. maybe the function of the library has changed but it used to work with the following script:

scan = mlx.FilterScript(file_in = 'pointcloud.xyz',file_out='%s.stl'%name, ml_version='2016.12')

it is also worth mentioning that I have once uninstalled and reinstalled meshlabxml and probably this new version of installation has caused the error. Could you please find a way to make it work, or maybe give me the updated script with the same functionality.

3DLIRIOUS commented 2 years ago

Yes, there's been a few changes in meshlabserver, mostly to deal with later versions of MeshLab. Here's some things to check:

MohamadZohoori commented 2 years ago

Many thanks for guiding me through this.

On Thu, 11 Nov 2021, 17:04 3DLirious, @.***> wrote:

Yes, there's been a few changes in meshlabserver, mostly to deal with later versions of MeshLab. Here's some things to check:

  • Make sure you are installing meshlabserver from this Github repo. The PyPi version is quite out of date, and PyPi has changed so much that I have to do more work to upload a new version, and i haven't had the time.
  • The current recommended version of MeshLab is 2020.09. This is the last version that can run mlx scripts directly (newer versions must invoke mlx scripts using PyMeshLab). Older versions (such as 2016.12) should still work though.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/3DLIRIOUS/MeshLabXML/issues/34#issuecomment-966306897, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALX7OLZCLW5J56OGXAIU3ELULPBAHANCNFSM5HYCKRJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.