Hi guys,

I would like to scalling the object nurbsCurves by moving the cv's using 
vector. So everything is alright unless the  object transform has rotation. 
Here is the script that I've created:

*def scaling_object(value, object):*
*    object_curve = pm.PyNode(object)*
*    for cv in object_curve.getShape().cv:*
*        position_ws = pm.xform(cv, q=True, ws=True, t=True)*
*        position_os = pm.xform(cv, q=True, os=True, t=True)*

*        vector_ws = pm.dt.Vector(position_ws[0], position_ws[1], 
position_ws[2])*
*        vector_os = pm.dt.Vector(position_os[0], position_os[1], 
position_os[2])*

*        final_position = vector_ws + (vector_os * value)*

*        pm.move((final_position[0]), (final_position[1]), 
(final_position[2]), cv)*

I need advise about rotation in vector things. Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9e1d7a7f-93f3-421c-95fd-2010378353d9n%40googlegroups.com.

Reply via email to