Posts

Showing posts from July, 2018

Plot Curves From an Animated Object

''' PlotCurves v1.26 Christian Hart. Hartwork Studio www.hartwork.com.au Draws a curve from the position of any group, object or vertex selected as it travels along it's animation. Allows multiple selection. Good for modeling unique things like springs or wires by using animation to design the shape. Or good when needing a motion trail that can have things attached to the path. Installation: Put the script in your scripts directory and create a python shelf button with the following two lines. from hart_plotCurve import * plotCurve() ''' import maya.cmds as mc import random from functools import partial # def plotWithCurve(startFrame, endFrame, step, *args): # startFrame = mc.floatField(startFrame, query=True, value=True) endFrame = mc.floatField(endFrame, query=True, value=True) step = mc.floatField(step, query=True, value=True) # selected = mc.ls(sl=True, flatten=True) if not selected: mc.error(" Nothi...