Post #216: one more question - i have made a script which select bones - suppose it has WXY

šŸ“‹ Metadata

šŸ·ļø Tags

macro python-scripting beginner unsolved

  • Macro Editor
  • Python Scripting

šŸ’¬ Content

one more question - i have made a script which select bones - suppose it has WXYZ bones i wrote a code something like this

C.object.data.bones[ā€œWā€].select = True ; C.object.data.bones[ā€œXā€].select = True ; C.object.data.bones[ā€œYā€].select = True ; C.object.data.bones[ā€œZā€].select = True

now i want it to check if this armature has X bone or not . it X bone does not exist in the armature then script should skip that bone and select rest of the bones ( which is W, Y and Z )


šŸ”— View on Blender Artists