Hi, Because of a weird bug in Maya when you set parametric length on a motion path you need to set the opposite;
cmds.setAttr(mp + '.fractionMode', True) actually turns parametric off. So you need to do cmds.setAttr(mp + '.fractionMode', not True) or cmds.setAttr(mp + '.fractionMode', False) To get your code snippet to work. Cheers, Neil -- *MILK <http://www.milk-vfx.com/>** VISUAL EFFECTS** * Threeways House, 40-44 Clipstone Street London, W1W 5DW Tel: *+44 (0)20 3697 8448* * * This message is intended solely for the addressee and may contain confidential and/or legally privileged information. Any use, disclosure or reproduction without the sender’s explicit consent is unauthorized and may be unlawful. If you have received this message in error, please notify Milk VFX immediately and permanently delete it. Any views or opinions expressed in this message are solely those of the author and do not necessarily represent those of Milk VFX. By engaging in professional correspondence with Milk VFX, we may store your contact information for future reference. This is in line with Milk’s Privacy policy which can be found here. <http://www.milk-vfx.com/wp-content/uploads/2018/05/Milk-VFX-Privacy-Policy-May-2018.pdf> Milk Visual Effects is a registered limited company: 0844 1256. The registered company address is Threeways House, 40-44 Clipstone Street, London, W1W 5DW. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5b55c741-13aa-4343-8428-edc190e17698%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
