MAYA Brief Note 005 – The Error Message about Crowd Maker 0.6.0

基本上他是 前一篇筆記 的英文版XD

Error Message:

// Error: file: cMakerCreationUI.mel line 226: Controls must have a layout. No layout found in window


Introduction

Crowd Maker is a nice MEL tool about behavioural animation. You can know more in the web page of Creative Crash:

http://www.creativecrash.com/maya/script/crowd-maker/description#tabs

But you may encounter the error message :

// Error: file: cMakerCreationUI.mel line 226: Controls must have a layout. No layout found in window

What happen ??

Reason and Solution

It is because the adjustment of MEL command. So the command “setParent ..;” is no neccesary now.

You can reomve it or comment it out. They are in line: 224, 231, 238, 245, 253 .

Ok! Then you can enjoy Crowd Maker! :-)

PS. Don’t forget run  “source cMakerCreationUI;”  if you never restart Maya.

Part of Source (Do a reference for you)

global proc cMakerCreationUI() {

// Create the window.
  if (`window -exists cMakerCreateWindow`) 
    deleteUI cMakerCreateWindow;

  window 
    -widthHeight 300 300 
    -title "CrowdMaker 0.6 beta 3" 
    cMakerCreateWindow;

  string $form= `formLayout`;

  string $txtObstacle= `text -label "Obstacle Avoidance"`;
  string $collection1= `radioCollection`;
  string $radiob1, $radiob2;
  $radiob1= `radioButton -label "On"`;
  $radiob2= `radioButton -label "Off" -en 0`;
//  setParent ..; setParent ..;
// Here Here Here  ↑ ↑ ↑ ↑  Comment them out ^^
  string $txtSep= `text -label "Separation"`;
  string $collection2= `radioCollection`;
  string $radiob3, $radiob4;
  $radiob3= `radioButton -label "On"`;
  $radiob4= `radioButton -label "Off" -en 0`;
//  setParent ..; setParent ..;

... ....

Basic Steps and Success Picture

  1. Create a locator, an emitter, a nurbs plane
  2. Select Particle of Emitter (eg.  particle1 )
  3. Select Locator
  4. Select nurbs
  5. Press button: “CrowdMaker creation UI”
  6. Ok, you have a panel now. Please press “Create” and enjoy :-)

 723

Good Lucky ! Everyone ! :-)

You Might Also Like

Leave a Reply

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料