Just tried to script it. The issue is that regular weight maps are vertex maps, and the subdivision weight map is an edge map. So I can query the values from the subdiv weight map, and technically apply them to another weight map but it won't take because the weight map wants them applied to vertices, not edges.…
It has some issues... I thought I'd post up the code and see if anyone has ideas... I'm finding it difficult to connect the floatFields to the value of the functions... and the selected vert mode doesn't work... Here it is. It's mostly an exercise in scripting #Import Necessary Modulesimport maya.cmds as mcimport random#…
CenterPivot;makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;xform -q -piv -ws;move -a (-1 * xform query x) (-1*xform query y ) (-1*-xform query z) ; YAY it works. My first script, well not done yet. Need to figure out how to save a query to a vector variable then Ill be golden :) EDIT: Guess I should say what the script does…
Its probably easier to store the last export directory (either as a custom attribute on the mesh or in a variable. Depends how you want to handle different maya sessions) and then use that to generate the directory path. EDIT: You can query it with $currentDir = `optionVar -q $gDirRetainingOptionVar`; That will get you the…
Here you go. -- Make two MEL shelf buttons. Then, here's the MEL code for shelf button 1: //turn off undo undoInfo -stateWithoutFlush false; //query current grid divisions int $gridDivs = `grid -q -divisions`; //calculate new divisions $gridDivs = $gridDivs * 2; //query current grid spacing int $gridSpacing = `grid -q…
Hey there, I've always liked the idea to posses a kind of digital sketchbook for not showcasing the superpolished work, but for collecting all the wip-stuff and scribbles to develop them further.. I would like to expand my painting-skills aswell as the game-(especially character)modeling-skills. Expect mainly sketches and…