For my university assignment i have to make a script that scatters tree's across a scene randomly. The script has to include: · "Simple User Interface (GUI) to include the following options: [FONT="]o [/FONT]Select species of tree to use – i.e. Oak / Beech / Pine etc [FONT="]o [/FONT]Number of trees to generate…
Hi, In my #MEL command browse button is not working I'm getting an error // Error: line 56: Object 'rsTxtPath' not found. ANY IDEA? proc ScreenCaptureWin() { global string $rsTxtPath, $rsTxtName; string $sn = `file -q -sn`; string $cfp = `dirname( $sn )`; if (`window -exists ScreenCapture`) //closes window if already open…
Hi, so I created this code which executes fine in the script edtior, it toggles the checker map on/off each time you run the script in the UV editor. //This works fine int $uvToggleChecker = !$uvToggleChecker; if ($uvToggleChecker == 1) { print ("UV checker map turned on."); } else if ($uvToggleChecker == 0) { print ("UV…
Hi polycounters ! 0/ Since a few hours (maybe more) I'm trying to learn and make a custom tool for Maya and my workflow. I have already programmed in C++ in the past, so the Mel language is not so hard to understand for me. The hard part is to find the name of the various function inside maya, but even with that, I still…
hey there, I'm back again with another problem I'm having which I cannot find an answer for on the Internet so I need your help again.. I'm trying to create a little script to help me creating simple symetrical objects by creating a mirrored base object. But I'm stuck on not being able to select certain edges to do…
As far as I'm aware, most UI elements in Maya can be added in custom UI windows.For example, you can create windows with a scene's viewport ("modelEditor"), blend shape editor ("blendShapeEditor") and the node editor ("nodeEditor"). You can arrange them however you want and as many as you want. But so far I haven't managed…
Hello everyone, I'm trying to learn MEL scripting coming from a background of Unity C#. Currently I'm working on a script that moves all selected vertices to 0 on the x-axis. I borrowed this script from another forum but it doesn't seem to work when the object has moved: string $verts[] = `ls -sl -fl`;<br> for($vert in…
Hi everyone! I'm currently learning how to use MEL to automate some repetitive tasks in my rigging/animation workflow and I've run into a problem. I thought I'd post my script here to see if anyone can point me in the right direction. Basically, this script is designed to create blendshapes for clothing and accessories to…
I have written a script which makes to manage FormLayouts easier. I want to share this if anyone could be interested. The FormLayout control is the most powerful but less accessible one as it requires more size, offset and ratio management codes. This script is designed to use FormLayouts as easy as PaneLayouts. With this…
Hi guys, I'm a 3d artist starting a Normandy SR1 remake (interiors) for my portfolio, using Unreal Engine 4 and targeting "next gen" specs aka PC/PS4/X1. Basically make it as top quality as possible, the "ultimate" Normandy. I'm undecided on the visual direction of the project, and this is where I'm asking for your…