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
- Create a locator, an emitter, a nurbs plane
-
Select Particle of Emitter (eg. particle1 )
-
Select Locator
-
Select nurbs
-
Press button: “CrowdMaker creation UI”
-
Ok, you have a panel now. Please press “Create” and enjoy :-)
Good Lucky ! Everyone ! :-)
Leave a Reply