Wednesday, April 1, 2015

Toggle Smooth mesh of all obejects in your scene Mel Script for Maya

You can paste this right into the command window of a shelf button:


select -cl;
SelectAll;
string $sel[] =`ls -sl`;
for ($thisObj in $sel){
int $displaylevel[] = `displaySmoothness -query -polygonObject $thisObj`;
if ($displaylevel[0] == 1)
{
//Go to 3
displaySmoothness -polygonObject 3;
}
if ($displaylevel[0] == 3)
{
//Go to 1
displaySmoothness -polygonObject 1;
}

    }

Lbrush Lipservice, bought and paid for, a beauty of a plugin. Streamline the animation process with this powerhouse of a plugin.

I purchased the Lbrush Lipservice plugin sometime last year and realized that it's an amazingly full and powerful animation setup toolset for maya. IT IS A BEAST@!

Sculpt with the ability to increase subdivision levels with the pupose of scultping blendshapes and blendshape correction ulitlizing builtin pose deformers. You dont have to load any seperate plugins or scripts.

Using this plugin, you don't have to create seperate blendshapes, just load into a new button everytime you sculpt a phoneme or beef up a muscle with a joint! And they are resculptable, meaning you can change them.

You can load existing blendshapes into the built in phoneme & blink buttons.

There are spiffy thumbnail previews for each button that it takes on auto and reload them on the fly.

Facial Animation with Lbrush Lipserve, tutorial, Click here

The feature is called Blendshapes+ , like me, it's an amazing tool! heh
The sculpting is so powerful, it comes with many brush patterns and you can easily make and load your own. 

It has built in stencils akin to Mudbox & zbrush. And the second amazing feature is 3D TEXTURE PAINTING, easily project full faces and blend them onto models. It adds a whole new creative toolset.

Texture painting with beautiful results!


Posespace deformation is another feature, if you are not familiar with this concept, you can add flexing shape to muscles via sculpting with the plugin's tools. Give that muscle flexing appearance and have it move with the joints.

Pose Space Deformer Tutorial with LBRUSH

It just has so many features it's tough to get granular and detail each one, but it's so easy to work with and create a whole new streamlined workflow.

Please visit the site and check it out. Try to buy. The demo vids had me at hello.

LBRUSH LIPSERVICE Website

Tuesday, March 31, 2015

Fabric Engine, Fabric Splice - Installing for Maya on OSX, how to set up

"Fabric Engine is a development framework that reduces the cost and risk of building high-performance custom tools."

Fabric Engine Trailer, Click here

You can just freeflow around in a fully rendered viewport scene. The FPS shouldn't nose dive as it would normally.  It sounds like a slice of the good stuff on a platter. Wow indeed.
Also they are constantly adding features and going way beyond their depth and making it their depth, so impressive, rendering, rigging, mocap, crowd building, just inasnity, I can't justify it into words:

Fabric Engine's, Vimeo Channel

That being said, it's a bit of a beast to set up, well, it's a lot of a beast if you don't know how to do it. There are no good instructions out there for installation, here is how I eventually did it after finding tidbits of info and piecing together:

1. Do not use their installer (Just skip step 1, it's here because it used to be a part of the install)
It is old and not up to date.
Do not add environment variable in lanchd.conf
This was discontinued.
Skip to step 2.

2. Download the latest Engine:
http://dist.fabric-engine.com/FabricEngine/

Extract it, don't change the huge folder name.
I put it here, this is where the old installer used to put it: /Library/FabricEngine/
Don't rename their folder, it has a long crazy name.

3. Edit the FabricSpliceMaya.mod file,  in fabric engines module directory located here (Do not relocate): 
/Library/FabricEngine/1.15.0/SpliceIntegrations/FabricSpliceMaya2014SP3 

It should look like this after you edit it:
+ FabricSpliceMaya 1.0 .
FABRIC_EXTS_PATH +:= /Library/FabricEngine/1.15.0/Exts
PYTHONPATH +:= /Library/FabricEngine/1.15.0/python/2.7
PATH +:= /Library/FabricEngine/1.15.0/SpliceIntegrations/FabricSpliceMaya2014SP3/plug-ins

After editing it, close it and double check it that it editited.

5. I also had to add to the maya.env file (wouldn't work without this), located in this path:
/Users/yourusername/Library/preferences/autodesk/maya/2014-x64/modules/maya.env

FABRIC_DIR=/Library/FabricEngine/FabricEngine-1.15.1-Darwin-x86_64
FABRIC_EXTS_PATH=/Library/FabricEngine/FabricEngine-1.15.1-Darwin-x86_64/Exts

MAYA_MODULE_PATH=/Library/FabricEngine/FabricEngine-1.15.1-Darwin-x86_64/SpliceIntegrations/FabricSpliceMaya2014SP3

6. Put these lines in usersetup.mel to make the fabricSplice plugin autorun auto run:
//Auto loads FabricSplice plugin so you don't have to
if(!`pluginInfo -query -l -n FabricSpliceMaya`) loadPlugin "FabricSpliceMaya"; 

7. then you must open maya terminal (not regular terminal) and Source environment.sh  
(Do not edit this file since it pulls it's info from maya.env and the FabricSpliceMaya.mod)
open terminal, in shell, new window, maya...
type source 
and just drag in environment.sh from where it is sitting in /library/fabricengine/1.15.0 into the terminal after source. then hit enter, errors mean it's messed up.

8. Reboot. 

9. open maya terminal
source environment.sh
and to open maya, you just type maya

It will show up in the toolbar menu as "fabricsplice: something"
If it is not running then go into your plugins manager and see if it is checked.

10. (Optional) Made a duplicate user startup script called userSetupFabric.mel, in maya’s script folder in the regular user directory. then made an applescript that runs this start up script instead to make a separate alias to run fabric and have a non fabric alias , so i have two on the doc and named them accordingly.

--open terminal
tell application "Terminal"
activate
delay 0.8
--run maya env variables
do script ". /Applications/Autodesk/maya2014/Maya.app/Contents/bin/MayaENV.sh"
--keystroke ". /Applications/Autodesk/maya2014/Maya.app/Contents/bin/MayaENV.sh"
tell application "System Events"
keystroke return
delay 1
keystroke "source /Library/FabricEngine/FabricEngine-1.15.1-Darwin-x86_64/SpliceIntegrations/FabricSpliceMaya2014SP3/environment.sh"
keystroke return
delay 1
--start maya
keystroke "maya -script userSetupFabric.mel"
keystroke return
--don't kill terminal, just leave it open while you use maya, killing terminal here with kill maya
--tell application "System Events"
--kill terminal
--keystroke "killall Terminal"
end tell
end tell


Don’t Kill the terminal or it will kill maya abruptly, instead leave the terminal running.


Notes:
Do not move their plug in (FabricSpliceMaya.bundle), environment.sh points to the plugin in their directory. I did trying to force it to work and this caused errors.

Fabric may not play nicely with some other plugins and python. I notice they improve it a little with each iteration.

Bonus Step 10.
If you don't want fabric to be permanent, you can make an alias that boots maya with a a different user pref file and starts the plugin, so that you can start a version of maya without fabric started.
If there is interest in this let me know.