Skip to content

Introduce match transformation feature (inspired by the similar feature in Maya) in Blender

Notifications You must be signed in to change notification settings

moonyuet/Match_Transformation_Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Match Transformation Toolkit in Blender

As it is only used for educational purpose only, I don't include either shell scripts or batch files in this repository. I also don't include the header for the match transformation toolkit in Blender too. If you want to autoload in Blender, please refer to some of my other blender scripts\ as references to create bl_info for the script.

The final verion of the toolkit here

What is match transformation? It is basically getting all transform data(translate, rotate and scale) from object A and transfer to become the new transform attribute of object B. This kind of data transfer is common in dcc software. Baking map and transferring UVs share similar theories with match transformation. It's essential to know in spite of its simplicity.

How it works programmatically in Maya?(You can refer to matchTransformationExplanation.py)

  1. Select more than one object, and create a Python list to include them.
  2. Find the last item (the parent object) from the list and get the transform data of the item.
  3. Set attributes of the other items(the children objects) with the transform data got from the last item.

How we can replicate the similar functions in Blender?(You can refer to selection_explanation.py)

  1. Get your selected objects and create a list
  2. Get the last item of the selected object.
  3. Update the selection list by removing the last item of the selected objects.
  4. Set the transform attribute of the selected objects from the new selection list equal to that of the last item from the old selection list.

About

Introduce match transformation feature (inspired by the similar feature in Maya) in Blender

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages