Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Local oriented
- Parent constraint method
- '''
- import pymel.core as pm
- '''
- 1) Get selection.
- - Driving object (has the orientation)
- - Driven object (which will be moved to the driver)
- '''
- items = pm.ls(sl=True)
- driver = items[0]
- driven = items[1]
- #2) Apply parent constraint with maintain offset off
- kenny = pm.parentConstraint(driver, driven, weight=1)
- #3) delete constraint
- # delete
- pm.delete(kenny)
- pm.select(driven, r=1)
- '''
- Local oriented
- Parent constraint method
- '''
- '''
- 1) Get selection.
- - Driving object (has the orientation)
- - Driven object (which will be moved to the driver)
- '''
- '''
- 2) Parent child to the parent
- child is driver and parent is driven
- '''
- #3) Zero out transforms (trans or rotates)
- #** Group option
- #4) Unparent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement