I'm looking to click a button and run a bunch of lines of code and at the end update my variable so when I click the button the second time it runs some different lines of code. I tried this, but it's complaining about redeclaring the variable. What's the cleanest way to do a simple toggle where the state changes each time…
Sorry if the title is a little confusing, I am trying to have a procedure that containts a proxy text that will be replaced after, but the only way I can create the procedure is if I declare the variable inside the procedure and that ruins my intention // Create variable string $vartest = "test"; // Check print print…
Good afternoon everyone! I'm trying to make a quick exporter, but I'm having a bit of difficulty... //Grab a list of everything selectedstring $lsS[] = `ls -sl`;//Loop through the list and export selectedfor ($i = 0; $i < `size ($lsS)`; $i ++){ //Remove organization suffix string $filename = ("/data/forUnity" +…
I'm actually creating a script using the surfaceSampler function... It worked very well during to last days, and this morning I obtain a stupid error, and impossible to know what it means! T_T.... if someone knows what means : // Error: line 1: image has unsupported number of bytes per channel: 255 // // Error: line 1:…
Hi, I'm working on a script to place cylinders on selected faces for booleans. I need to place the first selected object into a token so I can call it up, but am confused on how I can bring the selection into a string to tokenize between the "." The script is meant to allow me to select adjacent components on a poly…
Hey Guys, I am trying to make my maya mirroring a little bit smarter. If I am in object transform mode it should mirror the object based on my pivot point's orientation, not just its position Even if there are no transforms on the object anymore. I need to work with the manipPivot orientation, to align my object to a world…
EDIT : Maya initial idea isn't really necessary after I've discovered pivot marking menu. When pivot edit mode is toggled (press "d"), you can right click to open common options for pivot. So no need to hotkey those. I'd like to get the script which runs the "Reset" button on the pivot. When I open script editor and press…
Hi, I'm working on a free Nut_Bolt script but I'm getting an error. Let's say I'm Importing the Bolt_01 it's snapping to the selected face but again when I run this script on a new selected face it's taking back Bolt_01 to the origin. It shouldn't happen like that. For more REFER VIDEO. {
// create a window
window -title…
Hello everyone, I am a little stuck with user inputs. I am trying to create a window where the user can write the name of the fbx they want to import then pass it on to the string that contains the file path to open that fbx. I have tried different combinations but I getting only errors. I thought I was closed, but I cant…