Are you sure you put the statement in the right method? I just tested it by copying your script into a new project and adding zero/max checks in the update function and it seems to be working fine. void Update() { HandleHealthbar(); if (Input.GetKeyDown(KeyCode.Space)) { Health -= 10; } if (Health <= 0) { Health = 0; } if…
what if he wants super low res voxels, like how voxels used to be? There is Qubicle http://www.minddesk.com/?page_id=243 Which has a 3d voxel editor and maya plugin / script to convert texturized meshes into 3d voxel objects. A bit crazy expensive but certainly interesting to check out. I wrote one script myself to do that…
That's me. :) Thanks, I'm glad you find it useful. I actually recorded that video ages ago to demonstrate the technique to someone here on the forums. Credit for the technique though goes to Shon Mitchell (who you may know as the guy who made the GetBent script for Maya), he's the one who taught me. Speaking of scripts. I…
In your tool a function is being defined after it is used. It works on the second try because its defined at the end of the first pass. If you script is a single file, move all you function definitions to the top of the script. If you script is multiple files check this page for the evaluation order.…
[MayaInstallPath]\scripts\startup\hotkeySetup.mel I've had this issue with certain keys, I've been able to comment out most of the offenders in this file, but could not override ctrl-w for the life of me. I've some viewport shading scripts that stop functioning if I even click on the 'shading' panel menu. It could be…
Just tested in Max 2014 and Nitrous and the script spits out errors about missing albedotexture in null etc... Directly in the script's "on create" handler., when trying to assign the albedo texture . Switching to DirectX mode fixes that. Same is true for Max 2015 and nitrous I'm not sure wether the things your scripts…
First of all you can make one turbine then copy and paste, you have to make two object the fan and the base. to be honest i don't think you have to go in and make an animation since you could write a simple script that can make the fan rotate so it saves you time. if its going to be more that spinning create the animation…
i think there is something wrong with yout hotkey assignment. What you can do to proive this: - copy and paste the script into the script editor - select everything and middle-mouse drag it to a shelf - then you have clickable button(don't forget to select your object) that shold work. or you can: - select your object -…
I got you man! It's a windows function that affects every program photoshop etc. you have to disable the alt menu selection for the alt key, by applying this script in windows. If you follow this link it should give you the instructions. after the script is applied the alt key still works but doesn't activate the menu at…
there are other ways to do it, storing the edge normals in an array would have been a better way to go but it was really just a cut and paste script I had code that worked that way. In general keeping normals in a mapping channels work well with scripting as you don't need the object selected and to be in the Modify Panel…