Post #2989: Hi roaoao,

πŸ“‹ Metadata

  • Author: eltarbos
  • Date: 2020-01-25 11:05:19
  • Type: question
  • Quality Score: 7/10
  • Replies (1): post_02991

🏷️ Tags

pie-menu scripting intermediate unsolved

  • Pie Menu Editor
  • Python Scripting

πŸ’¬ Content

Hi roaoao,
First of all, thanks a lot for your add-on. I could not imagine Blender without it.

I tried to make a pie menu for curve editing but I encountered a small problem.
I want to be able to change some parameters of the active spline like cyclic or smooth values.
When I right clic on those parameters to send the function to my pie menu, it gives me this code:
C.object.data.splines[0].use_smooth
How can I change this to affect the active spline instead of the spline[0].

Here’s a sceenshot for better explanations:

curve_pie_problem01curve_pie_problem011572Γ—879 157 KB


πŸ”— View on Blender Artists