Hi Pedro,
Sorry for the late reply but I didn't notice your answer

I'll test this one as well, so I'll have hopefully multiple ways to do
mirrored poses :)

The video you posted is exactly what I'm looking for!!! but yeah, looks
like the nice lady wont share the script...well, time to learn some
scripting


2014-03-03 17:24 GMT+01:00 pedro santos <probi...@gmail.com>:

> Heya Nick
> I'm a python newbie and I know very little of Softimage application of
> Python, but I'm working my way up to do the same thing you are doing.
>
> Independently from Softimage I made a little script that returns a list of
> the symmetrical control, or itself if it's a center control.
>
> Example: http://repl.it/P2G
>
> I intend now to study softimage's python application to get this going.
> Only inverted coordinates that I foresee are PosX and RotY.
> Hope it doesn't come out too slow :D
>
> Cheers
>
>
> On Tue, Feb 25, 2014 at 10:32 PM, Nicolas Esposito <3dv...@gmail.com>wrote:
>
>> Using my marvelous copy & paste skills I created two python scripts which
>> allows me to set the position and orientation constraint on a set of nulls,
>> then apply a simmetry constraint to another set of nulls
>> Attached you'll find the models and the scripts
>>
>> However I notice that it works properly only when using
>> RockFalcon_2010_ROM, while if I try to use any other RockFalcon files I
>> have this error:
>>
>> Application.SelectObj("Driven.LEyebrowEnd_Control", "", True)
>> Application.ApplyCns("Position", "Driven.LEyebrowEnd_Control",
>> "Face.LEyebrowEnd_Control", "")
>> Application.SelectObj("Driven.LEar_Control", "", True)
>> Application.ApplyCns("Position", "Driven.LEar_Control",
>> "Face.LEar_Control", "")
>> Application.SelectObj("Driven.LOrbitalUpper_ControlOffset", "", True)
>> # ERROR : 2000 - Argument 2 (ConstrainingObj) is invalid
>> # ERROR : 2001-CONS-ApplyCns - Argument 2 is invalid
>> Application.ApplyCns("Position", "", "", "")
>> # ERROR : Traceback (most recent call last):
>> #   File "<Script Block >", line 6, in <module>
>> #     Application.ApplyCns("Position",
>> "Driven.LOrbitalUpper_ControlOffset", "Face.LOrbitalUpper_ControlOffset",
>> "")
>> #   File "<COMObject Application>", line 2, in ApplyCns
>> # COM Error: The parameter is incorrect. (0x-7ff8ffa9) - [line 6]
>>
>> ----------------------------------
>>
>> Someone could explain me why isn't working or the constraint couldn't be
>> applied?
>>
>>
>> 2014-02-25 21:08 GMT+01:00 Nicolas Esposito <3dv...@gmail.com>:
>>
>> I'll probably share it as soon as I'll finish it, but the solution with
>>> the nulls looks like could be the solution
>>>
>>> Basically the setup is:
>>> A set of Nulls with position and orientation constraints to the
>>> FaceRobot controllers
>>> Another set of Nulls ( duplicated from above, with the constraint
>>> removed ) with simmetry applied
>>>
>>> 4 Python scripts:
>>> One will create the nulls
>>> One will constraint the position and orientatio of one group of the nulls
>>> One will constraint the simmetry to the other group of nulls
>>> One will constraint the FR controllers to the simmetrized nulls
>>>
>>> I'm still testing some stuff ( I have a weird error on the right eyebrow
>>> ), but it should work fine, means that since the FR controllers are always
>>> named the same I can easily use those nulls and scripts for every FR rig I
>>> have
>>>
>>> Also I'm so proud of my copy and paste skills from the Script Editor in
>>> order to create the script :-D
>>>
>>>
>>> 2014-02-25 20:21 GMT+01:00 Cesar Saez <cesa...@gmail.com>:
>>>
>>> If you're planning to roll your own thing, the difflib module (python
>>>> std library) works great to create mapping tables, you can easily calc. the
>>>> ratio between names instead of relying on some fixed naming convention :)
>>>>
>>>> from difflib import SequenceMatcher
>>>> ratio = lambda x, y: SequenceMatcher(None, x, y). ratio()
>>>>
>>>>
>>>
>>
>
>
> --
> [img]http://i153.photobucket.com/albums/s202/animatics/avatar_1.gif[/img]
>

Reply via email to