Post #298: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

  • Author: roaoao
  • Date: 2016-09-04 02:55:06
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00296

🏷️ Tags

macro python-scripting intermediate solved

  • Macro Editor
  • Python Scripting
  • Command tab

💬 Content

draguu:

is it possible to assign a pose with name ? not with index . i mean … like right now i can assign pose with index easily , how do i assign pose with its name … so when i press a button it will search for “happy” pose and assign it

Is this possible ?

Try this code in Command tab:

O.poselib.apply_pose(pose_index=C.object.pose_library.pose_markers.find("Your Pose Name"))

🔗 View on Blender Artists