Well, I found out that I did try this method and it does not solve the
problem by itself
Problem was elsewhere. I figured out, that I need to encodeString before
sending it as argument to python procedures. That solved the problem.
but thanks for the reply anyway.
MaxtorAG
2008/9/21 Mario Dubec <[EMAIL PROTECTED]>
> Thanks a lot, going to try it!
>
> 2008/9/21 Dean Edmonds <[EMAIL PROTECTED]>
>
>
>> On Sun, Sep 21, 2008 at 3:39 AM, MaxtorAG <[EMAIL PROTECTED]> wrote:
>> >
>> > Maybe it's a dumm question, but how do I parse raw strings as
>> > arguments from mel code to python procedure...
>> >
>> > I have a string in mel script containing an expression. I need to send
>> > this string as e.g.:
>> > python("function(" + $string + ")");
>>
>> python("function('" + $string + "')");
>>
>> (that's single-quote, double-quote before the open-paren, and
>> double-quote, single-quote before the close paren)
>>
>> or:
>>
>> python("function(\"" + $string + "\")");
>>
>> --
>> -deane
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---