質問

How do you print an integer into a string in Maya MEL scripting?

役に立ちましたか?

解決

It turns out you can just use + to concatenate string and integer objects in Maya Embedded Language.

For example:

int $i ;
string $s ;

    for( $i = 0; $i < 5; $i++ ) {
        $s = "ooh" + $i ;
        print $s ;
    }

There is also the format command

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top