Hi Adam, we are using Maya 2015 (not ext), but it must be what Cesar says.

Just out of curiosity, what exactly is this line doing?

delete `parentConstraint`;

Applying a cns and then deleting it?






On 4 December 2014 at 12:35, Luc-Eric Rousseau <[email protected]> wrote:

> Often happens when you copy paste a script from outlook or another email
> app that changes the quotes on you
> On Dec 4, 2014 2:41 AM, "Cesar Saez" <[email protected]> wrote:
>
>> Hey Adam,
>>
>> It doesn't work because you're using the wrong quotation marks,
>> *parentConstraint* should be enclosed by backticks / backquotes / `
>> (it's an imperative form of eval... sort of).
>>
>> http://download.autodesk.com/global/docs/maya2014/en_us/files/FAQ_What_is_the_difference_between_eval_backquotes_and.htm
>>
>> Cheers!
>>
>> On Thu, Dec 4, 2014 at 1:11 AM, Adam Sale <[email protected]> wrote:
>>
>>> Hi Cesar, funny, I had been using the one liner to match transforms,
>>> position, rotation, etc about 6 months ago, no problems
>>>
>>> Now, however, running the command just doesn't work for me in MEL in
>>> Maya 2015 Ext1 SP5.
>>>
>>> delete 'parentConstraint';
>>>
>>> same goes for point, scale and orient.
>>>
>>> Selecting two objects and running returns a syntax error  Line 1.8
>>>
>>> Not sure why it would have stopped. Cristobal which version of Maya are
>>> you running?
>>>
>>>

Reply via email to