Okay got it working. Here is the code, just replace the polyEditUV line with whatever custom code you want to run on selected UV shells. ConvertSelectionToUVShell; $shellUVs = `ls -sl`; $findShells = `texGetShells`; $numbShells = `size $findShells`; $shellIndex = 0; for ($item = 0; $item < $numbShells; ++$item) { select…
A lot of MEL commands will automatically identify your selection as the target for the procedure so you can take out the specific reference to your object (pCube1.f[0]). Here are a couple shelf buttons I already had on hand for your convenience: ConvertSelectionToFaces; polyProjection -ch 0 -type Planar -ibd on -kir -md x;…
playing around with the Knight SDK by Cory Robinson...we'll call this phase 1. http://vimeo.com/28783655 <iframe src="https://player.vimeo.com/video/28783655?title=0&byline=0&portrait=0" width="400" height="300" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe><p><a href="https://vimeo.com/28783655">WIP…
You continuing? So. Much. AWESOME! I found this for arccos: http://wiki.beyondunreal.com/Legacy:Useful_Maths_Functions#arcCos_funtion static final function float ACos ( float A ) { if (A>1||A<-1) //outside domain! return 0; if (A==0) //div by 0 check return (Pi/2.0); A=ATan(Sqrt(1.0-Square(A))/A); if (A<0) A+=Pi; Return A;…
Yep, auto key sets a key at frame 0. It only sets a key for that particular motion. If you move to frame 10 and rotate, it only sets keys on rotation on 0 and 10. It won't set Position or Scale. Before you start animating and while your still on frame 0 you can click the big Key button which will set a key for everything.…
well the reason its giving you that error is because your declaring $CurMod as an int instead of an int array, when the return is an array. Thats what it looks like to me at first glance at least. So just do something like this: global proc tkToggleHardEdgeSelect() { int $CurMode[] = `polySelectConstraint -q -sm`; if…
New one on a vaguely similar slant to the falloff script, here's a script which uses the same up/down controller to shrink/grow a selection. Just press the hotkey you assign to the script, then move the mouse up or down to shrink or grow the selection. <font class="small">Code:</font><hr /><pre> macroscript selectionSlider…
Hello, it's me I just finished this great tutorial from https://gumroad.com/timb. And I want to share my model and texture with You. You can download this model and textures for free and do what ever You wnat with it. Have fun ;) http://https//www.dropbox.com/s/b6thh0jx26ojs3k/dao_low_poly_and_textures.zip?dl=0…
Heres some simple code to toggle xray, it's not want you wanted but does the same job (unless you wanted transparency thats on 50$). Let me know if you want me to explain it but it should be relatively straight forward. Ill post the code for the material switching later on or probably tomorrow. string $sel[] =`ls -sl`; for…