PDA

View Full Version : does there is a character lenght limit in the script editor ?


smoluck
08-03-2006, 09:53 AM
Here a command line that I want to use in order to create an object from external data:

polyCreateFacet -ch on -tx 0 -p -55,5 -0 -50 -p -55,05 -0 -44,9 -p -54,6 -0 -41,715 -p -54,15 -0 -38,996 -p -53,7 -0 -36,541 -p -53,25 -0 -34,266 -p -52,8 -0 -32,124 -p -50,1-0 -14,248 -p -50,55-0 -19,348 -p -51 -0 -22,533 -p -51,45-0 25,252 -p -51,9-0 -27,707 -p -52,35 -0 -29,982 -p -52,8 -0 -32,124 -p -50,1 -0 -14,248 -p -50,55 -0 -9,148 -p -51 -0 -5,963 -p -51,45 -0 -3,243 -p -51,9 -0 -0,789 -p -52,35 -0 1,487 -p -52,8 -0 3,629 -p -55,5 -0 21,505 -p -55,04 -0 16,405 -p -54,6 -0 13,22 -p -54,15 -0 10,501 -p -53,7 -0 8,046 -p -53,25 -0 5,771 -p -52,8 -0 3,629 -p -51 -0 -50 -p -50,55 -0 -44,9 -p -50,1 -0 -41,715 -p -49,65 -0 -38,996 -p -49,2 -0 -36,541 -p -48,75 -0 -34,266 -p -48,3 -0 -32,124 -p -45,6 -0 -14,248 -p -46,05 -0 -19,348 -p -46,5 -0 -22,533 -p -46,95 -0 25,252 -p -47,4 -0 -27,707 -p -47,85 -0 -29,982 -p -48,3 -0 -32,124 -p -45,6 -0 -14,248 -p -46,05 -0 -9,148 -p -46,5 -0 -5,963 -p -46,95 -0 -3,243 -p -47,4 -0 -0,789 -p -47,85 -0 1,487 -p -48,3 -0 3,629 -p -51 -0 21,505 -p -50,54 -0 16,405 -p -50,1 -0 13,22 -p -49,65 -0 10,501 -p -49,2 -0 8,046 -p -48,75 -0 5,771 -p -48,3 -0 3,629;

// Error: polyCreateFacet -ch on -tx 0 -p -55,5 -0 -50 -p -55,05 -0 -44,9 -p -54,6 -0 -41,715 -p -54,15 -0 -38,996 -p -53,7 -0 -36,€ //

// Error: Syntax error //


I've search about 10 times if I've put a character error by a mystake, but It seems that Maya won't launch a command with more than "n" number of character's. How I can create my PolyMesh by this command ?

Segmoria
08-03-2006, 10:28 AM
Well it's not the case of it being such a long command, only that you have put a semicolon of instead of the dot :)

polyCreateFacet -ch on -tx 0 -p -55.5 -0 -50 -p -55.05 -0 -44.9 -p -54.6 -0 -41.715 -p -54.15 -0 -38.996 -p -53.7 -0 -36.541 ... ;

After you correct this, the command evaluates with no errors, the shape of the face though is a bit of a mess.

smoluck
08-04-2006, 07:52 AM
Thanks a lot Segmoria ^^

That is a mess because I just want a shape to Vertice snap my EP Curve point. I haven't find a Mel command to create an EP curve by define her edit point like the polyCreateFacet.


Here the Code:
polyCreateFacet -ch on -tx 1 -s 1 -p -55.5 -0 -50 -p -55.05 -0 -44.9 -p -54.6 -0 -41.715 -p -54.15 -0 -38.996 -p -53.7 -0 -36.541 -p -53.25 -0 -34.266 -p -52.8 -0 -32.124 -p -50.1 -0 -14.248 -p -50.55 -0 -19.348 -p -51 -0 -22.533 -p -51.45 -0 -25.252 -p -51.9 -0 -27.707 -p -52.35 -0 -29.982 -p -52.8 -0 -32.124 -p -50.1 -0 -14.248 -p -50.55 -0 -9.148 -p -51 -0 -5.963 -p -51.45 -0 -3.243 -p -51.9 -0 -0.789 -p -52.35 -0 1.487 -p -52.8 -0 3.629 -p -55.5 -0 21.505 -p -55.04 -0 16.405 -p -54.6 -0 13.22 -p -54.15 -0 10.501 -p -53.7 -0 8.046 -p -53.25 -0 5.771 -p -52.8 -0 3.629 -p -51 -0 -50 -p -50.55 -0 -44.9 -p -50.1 -0 -41.715 -p -49.65 -0 -38.996 -p -49.2 -0 -36.541 -p -48.75 -0 -34.266 -p -48.3 -0 -32.124 -p -45.6 -0 -14.248 -p -46.05 -0 -19.348 -p -46.5 -0 -22.533 -p -46.95 -0 -25.252 -p -47.4 -0 -27.707 -p -47.85 -0 -29.982 -p -48.3 -0 -32.124 -p -45.6 -0 -14.248 -p -46.05 -0 -9.148 -p -46.5 -0 -5.963 -p -46.95 -0 -3.243 -p -47.4 -0 -0.789 -p -47.85 -0 1.487 -p -48.3 -0 3.629 -p -51 -0 21.505 -p -50.54 -0 16.405 -p -50.1 -0 13.22 -p -49.65 -0 10.501 -p -49.2 -0 8.046 -p -48.75 -0 5.771 -p -48.3 -0 3.629;


I would prefer a better clarity with a command line like that ! but Mel Can't do that ^^

polyCreateFacet -ch on -tx 1 -s 1
(-p -55.5 -0 -50
-p -55.05 -0 -44.9
-p -54.6 -0 -41.715
-p -54.15 -0 -38.996
-p -53.7 -0 -36.541
-p -53.25 -0 -34.266
-p -52.8 -0 -32.124
-p -50.1 -0 -14.248
-p -50.55 -0 -19.348
-p -51 -0 -22.533
-p -51.45 -0 -25.252
-p -51.9 -0 -27.707
-p -52.35 -0 -29.982
-p -52.8 -0 -32.124
-p -50.1 -0 -14.248
-p -50.55 -0 -9.148
-p -51 -0 -5.963
-p -51.45 -0 -3.243
-p -51.9 -0 -0.789
-p -52.35 -0 1.487
-p -52.8 -0 3.629
-p -55.5 -0 21.505
-p -55.04 -0 16.405
-p -54.6 -0 13.22
-p -54.15 -0 10.501
-p -53.7 -0 8.046
-p -53.25 -0 5.771
-p -52.8 -0 3.629
-p -51 -0 -50
-p -50.55 -0 -44.9
-p -50.1 -0 -41.715
-p -49.65 -0 -38.996
-p -49.2 -0 -36.541
-p -48.75 -0 -34.266
-p -48.3 -0 -32.124
-p -45.6 -0 -14.248
-p -46.05 -0 -19.348
-p -46.5 -0 -22.533
-p -46.95 -0 -25.252
-p -47.4 -0 -27.707
-p -47.85 -0 -29.982
-p -48.3 -0 -32.124
-p -45.6 -0 -14.248
-p -46.05 -0 -9.148
-p -46.5 -0 -5.963
-p -46.95 -0 -3.243
-p -47.4 -0 -0.789
-p -47.85 -0 1.487
-p -48.3 -0 3.629
-p -51 -0 21.505
-p -50.54 -0 16.405
-p -50.1 -0 13.22
-p -49.65 -0 10.501
-p -49.2 -0 8.046
-p -48.75 -0 5.771
-p -48.3 -0 3.629);

Segmoria
08-04-2006, 10:04 AM
So you just want to create an EP curve with those points as CVs, right?
Then why not use:

curve -degree 1 -p 0.590971 0 7.788968 -p -1.416353 0 -3.276984 -p 8.64218 0 -5.406396 -p 10.417572 0 3.362646 ... ;

smoluck
08-04-2006, 12:28 PM
thank Segmoria You've got a great skill in mel command ^^

CGTalk Moderation
08-04-2006, 12:28 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.