Post #3133: Hi Roaoao

📋 Metadata

  • Author: HokusPokus
  • Date: 2020-04-03 19:39:18
  • Type: question
  • Quality Score: 7/10
  • Replies (1): post_03140

🏷️ Tags

custom-scripting intermediate unsolved

  • Macro Editor
  • Python Scripting
  • Property Editor

💬 Content

Hi Roaoao
As it’s a never ending story you help me with custom codesnippets and the next moment Blender devs change something and the snippet breaks… i almost feel tired on myself that i need to keep asking…

It sure would be nice to collect all answers in this thread into a big FAQ

I wonder if there is a way to deduce by looking at the code ( in an add-on) how to implement a slider?

I have this code generated when i pull the slider and check the info output.

bpy.context.object.pose.bones["c_hand_fk.l"]["fingers_grasp"] = 0.11

And i have this code when i select “Copy data path” from within the RMB context menu

pose.bones["c_hand_fk.l"]["fingers_grasp"]

…and another one when looking inside the add-on code…

It sure would be nice to understand how PME works and try to solve the problem before asking any questions… and also be available and help others.

Is there a way to figure this out, how to add a slider within PME? Or is it different depending on what type of slider data there is? ( i mean the slider differs in what it references or if the slider is sort of a common type in Python)

Cheers


❤️ 1 likes


🔗 View on Blender Artists