Moov physics no longer works?

 
 
 
Posted by:matts
Data created:25 December 2018

Hi there, I would place this in defect reports, but the master thread list never finishes loading.

If I make a fresh scene, add furball to a sphere, then add a moov physics node. I get the following error:


// Error: Ornatrix: Traceback (most recent call last):

File "<string>", line 4, in <module>

ImportError: No module named HairModel
//
// Error: Ornatrix: python script C:/Program Files/Ephere/Ornatrix for Maya/scripts/Moov/HairSimulator.py could not run; see previous error messages //



ps. I am using 2.2.7.18185
This latest release is necessary as drive strands using external guides doesn't work in previous versions. 

I could not reproduce this. I downloaded and installed 2.2.7 stable, created a Fur Ball and added Moov to it. Here's the contents of the Script Editor:

OxAddStrandOperator "" "MoovPhysicsNode";
// Result: MoovPhysics1 //
// Ornatrix: Python script has no _solver global; creating a Moov solver //
// Ornatrix: [Info ] [ 253] [main ] [ 690732] OpenCLAdapter::Init : OpenCL: 1 devices discovered //
// Ornatrix: [Info ] [ 259] [main ] [ 690732] OpenCLAdapter::Init : OpenCL: using device Quadro K2100M version OpenCL 1.2 CUDA //
Hair model created: 80 strands, 800 particles, 1360 constraints, 1 meshes

There are no errors.

Only suggestion that comes to mind is check your installation, maybe re-install the plugin.

Check if you have these 4 files in C:\Program Files\Ephere\Ornatrix for Maya\scripts\Moov:

HairModel.py
HairSimulator.py
Math.py
SolverUpdater.py

Also check the OrnatrixMaya.log file in the %TEMP% directory, attach it here if it has any errors.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Thanks Ivan, I will try a re-install and report back

Hey, I just completed an uninstall, re-install

Made a sphere, added fur-ball, added a moov node to the top of the stack and had the same error.

This is the contents of the Ornatrix Log:

[Error ] [ 146896] [main ] [ 2877380] \Ephere\Plugins\Ornatrix\Python\PythonContext.cpp(250): error: PythonContext::LogPythonErrorInternal : Traceback (most recent call last):

File "<string>", line 4, in <module>

ImportError: No module named HairModel
[Error ] [ 146898] [main ] [ 2877380] \Ephere\Plugins\Autodesk\Maya\Ornatrix\Private\MoovPhysicsNode.cpp(508): error: MoovPhysicsNode::Compute : python script C:/Program Files/Ephere/Ornatrix for Maya/scripts/Moov/HairSimulator.py could not run; see previous error messages

Quick update. I repeated the uninstall, install 2.2.7.18185 process on another machine in our office and get the same error.

Did you check if you have those 4 files in that directory?

Or better, open Command Prompt in C:\Program Files\Ephere\Ornatrix for Maya, run "dir /b /s > %USERPROFILE%\OxFilelist.txt" and upload here OxFilelist.txt from C:\Users\<your username>

Then also upload here the file Ornatrix.mod from C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\2018 (assuming your Maya version is 2018)

 

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Hi Ivan, The 4 files are present in the scripts/Moov DIR

Attached is the OxFilelist.txt and the MOD file

Thanks



Attached Files:

>Ornatrix.mod (294 bytes), >OxFilelist.txt (38489 bytes),

Your installation seems correct. And it's weird that you get this error on more than one machine, while I can't reproduce it here on any machine.

Here are some more things for you to do, after you get the error:

* Attach here the full OrnatrixMaya.log file from %TEMP%, to see if there's anything else interesting there.

* Run these lines in a Python script window and paste here the result:

import sys
import os
print( sys.path )
print( os.getenv( 'PYTHONPATH' ) )

* Paste here the result of this MEL command:

pluginInfo -q -path -name Ornatrix

* Paste here the value of the "Python File Name" attribute of the MoovPhysics1 node in Attribute Editor.

 

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Sure!
Attached Ornatrix Log.

Results of plugin info query:
pluginInfo -q -path -name Ornatrix;
// Result: C:/Program Files/Ephere/Ornatrix for Maya/2017/Ornatrix.mll //

Moov Python File Name attribute:
C:\Program Files\Ephere\Ornatrix for Maya\scripts\Moov\HairSimulator.py

Results of python script:

['C:\\ProgramData\\Redshift\\Plugins\\Maya\\Common\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\bin', 'Z:\\_SOFTWARE\\NIM\\NIM_Connectors_current\\plugins\\Maya\\scripts', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts\\mentalray\\xgenmr', 'C:\\solidangle\\mtoadeploy\\2017\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\dialogs', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts\\mentalray', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\fxmodules', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts\\MayaToAE', 'C:\\Program Files\\Autodesk\\Maya2018\\plug-ins\\vrayscatter\\scripts\\AETemplates', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts\\unsupported', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\camd\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\ae', 'C:\\Program Files\\Autodesk\\Maya2018\\plug-ins\\vrayscatter\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts\\presets', 'Z:\\_SOFTWARE\\NIM\\NIM_Connectors_current', 'C:\\Program Files\\Autodesk\\Maya2017\\Python', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\ATF\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\Python\\lib\\lib-tk', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\xmaya', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\fbx\\scripts', 'C:\\Program Files\\Ephere\\Ornatrix for Maya\\scripts\\Python', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui', 'C:\\Program Files\\Autodesk\\Maya2017\\Python\\lib\\site-packages', 'C:\\Program Files\\Ephere\\Ornatrix for Maya\\scripts\\Autoload\\Others', 'C:\\Program Files\\Ephere\\Ornatrix for Maya\\scripts\\Autoload\\AETemplates', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\cafm', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts\\MASH', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts\\boss', 'C:\\Yeti-v2.2.1_Maya2017-windows64\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts\\NETemplates', 'C:\\Program Files\\Ephere\\Ornatrix for Maya\\scripts\\Autoload', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\widgets', 'C:\\Program Files\\Autodesk\\Extra\\MtoA\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\Python\\lib\\plat-win', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\tabs', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\util', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm\\ui\\brushes', 'C:\\Program Files\\Ephere\\Ornatrix for Maya\\scripts\\Autoload\\Stack', 'C:\\Program Files\\NVIDIA Corporation\\mentalray 3.14 for Maya 2017\\scripts\\AETemplates', 'C:\\Program Files\\Autodesk\\Maya2017\\Python\\lib', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\substance\\scripts', 'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\xgenm', 'C:\\Program Files\\Autodesk\\Maya2017\\bin\\python27.zip', 'C:\\Program Files\\Autodesk\\Maya2017\\Python\\DLLs', 'C:\\Program Files\\Autodesk\\Maya2017\\bin\\python27.zip\\lib-tk', u'C:/Users/BigRed/Documents/maya/2017/prefs/scripts', u'C:/Users/BigRed/Documents/maya/2017/scripts', u'C:/Users/BigRed/Documents/maya/scripts', 'C:\\solidangle\\mtoadeploy\\2017\\extensions']
C:/ProgramData/Redshift/Plugins/Maya/Common/scripts;Z:/_SOFTWARE/NIM/NIM_Connectors_current;C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/boss;C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/presets;C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/scripts/MASH;C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/scripts/MayaToAE;C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/scripts;Z:/_SOFTWARE/NIM/NIM_Connectors_current/plugins/Maya/scripts;C:/Program Files/Ephere/Ornatrix for Maya/scripts/Autoload/AETemplates;C:/Program Files/Ephere/Ornatrix for Maya/scripts/Autoload/Others;C:/Program Files/Ephere/Ornatrix for Maya/scripts/Autoload/Stack;C:/Program Files/Ephere/Ornatrix for Maya/scripts/Autoload;C:/Program Files/Autodesk/Maya2018/plug-ins/vrayscatter/scripts/AETemplates;C:/Program Files/Autodesk/Maya2018/plug-ins/vrayscatter/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts/AETemplates;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts/mentalray;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts/NETemplates;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts/unsupported;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts/mentalray/xgenmr;C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017/scripts;C:/solidangle/mtoadeploy/2017/scripts;C:/Program Files/Autodesk/Extra/MtoA/scripts;C:/Yeti-v2.2.1_Maya2017-windows64/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/substance/scripts;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/cafm;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/xmaya;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/ae;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/brushes;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/dialogs;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/fxmodules;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/tabs;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/util;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/widgets;C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts;C:/Program Files/Ephere/Ornatrix for Maya/scripts/Python



Attached Files:

>OrnatrixMaya.log (397199 bytes),

The directory 'C:/Program Files/Ephere/Ornatrix for Maya/scripts/Moov' is missing from sys.path. It gets added by Moov on first use. I have no idea why it doesn't happen on your machines.

As a workaround you may run this Python script

import sys; sys.path.append( 'C:/Program Files/Ephere/Ornatrix for Maya/scripts/Moov' )

and see if Moov will work.

We'll keep trying to reproduce it here, if we fail we may have to send you a special build with additional logging to try to figure out what's going on.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Sorry for wasting your time, it turns out this was already fixed in 18193 (post 2.2.7 stable), I didn't know about it.

Latest nighly build should work.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

And actually, we updated the stable build with a fixed one, so if you re-download and reinstall the stable build, it should work.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Hey, no problem at all, thanks for your attention. I'll try it now. 

Heya IvanKolev, Just working on this issue with Matts, On the downloads list i only see 2.2.7.18185 stable as the latest, and an osX only build 2.2.7.18216 nightly. 

 

Is it possible to get hold of the 2.2.7.18216 nigthly compiled for windows perhaps? Or a link to an alternate location which shows all builds?

 

Cheers

Abraham

Hi, we have tried installing the rebuild of 2.2.7.18194
The moov node now creates properly. I tested a fresh scene and could run and cache a sim fine.

I am curious though, when I opened my asset scene and added a moov node (also onto a very clean setup, just guides from curves, ground strands, then moov)
Most of the settings are greyed out. I have noticed this happen from time to time, but never known the cause. 

I have attached a pic of the issue. 



Attached Files:
Image 1

The stable build was replaced with a later, fixed revision, although it still shows 18185 on the page. If you download and install it, you'll see the actual revision number when you load the plugin (or in Windows' list of installed apps). I know it's confusing, we may try to fix that.

Anyway, I have triggered a build of 18221 for Windows and Mac, it should appear in about an hour.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Thanks Ivan, I really apprecaite allt he work going into solving this. nb. the greyed out attributes have dissapeared on reloading the scene

Hi again,
I have just noticed that there are other bug related to the Moov node. On reloading scenes and on turning caches (above moov nodes) on and off, the settings of the moov node are reset. The greying out of attributes also appears randomly, and preset's dont seem to apply properly across all attributes. I will try to switch account to post these in defects soon.