I need to trigger a bit of code to run when the user saves the file, I tried scriptJob -e "SceneSaved" "runScriptJobProc"; The problem with that is the script job executes the code after the save is complete, I need to pause the save, run my code and then let the save continue. Does anyone know if there's a command for…
Is there a way to get a certain value from an array retun without first assigning the return to a variable? For instance, I'd like to use something like: `ls -sl -fl`[0]; instead of: $val = `ls -sl -fl`; $val[0]; Just seems like a waste to be creating variables for one time uses.
hey :) what i like to get is a script that edits the attributes of the transforms, that are created after a boolean operation. For Example: i select two intersection cubes, press the difference boolean hotkey and get this result: so the script should: 1. make a boolean operation 2. select the transform node of all selected…
Hi Pc, i'm in desperate need of a similar technique to get a functional and easy "path deform deformer" like in 3dsmax in Maya. Everything i've tested is pretty ugly and / or kind of innacurate. I need to be able to deform a mesh with a curve : have tried bend, latice and flow path... But with no result. Maybe it's from…
hello im trying to find a way to set the world position of a object, to a absolute value, even after it;s transformations have been frozen. from the GUI it;s easy enough, to just use the input field in the top right corner set to absolute mode, the problem is doing it from script. i tried xform -a -ws -t 0 0 0; and move -a…
All, I have converted a displaced sphere to geometry (it's a globe with raised continents). I now wish to select and delete the "ocean" part. I have tried a Boolean subtraction with a smaller sphere with no success. In fact I've been trying every mesh rebuild, history delete, whatever to make this Boolean happen. So now I…
I can't get this working, if I remove the break the script works, but it creates too many erroneous groups, with the break in there it creates a single group, but then when I run the script again it ignores the if statement? Any idea what I'm doing wrong? string $transforms[] = `ls -tr`;for ($t in $transforms) { if ($t ==…
I just started using textFieldButtonGrp and I can't figure out how to reduce its width, the text field is always the same width making my UI super wide. What is the trick to specifying a width? Here's my simple window. string $window = `window -toolbox true -sizeable true -resizeToFitChildren true`; rowLayout…
Hey guys! Wanted to share this simple yet handy tool to quickly align objects or components to world axis. I made a marking menu to quickly acces to the desired axis with a hotkey. If you are interested I might upload it soon.