I started to learn python and I made/make a little script, but there is one problem:
I made a script, which adds a new curve, extrudes it and add a hook to the new handle of the curve…
I will select the new empty, but I don’t know how to make this with python.
It have to be active, because I will bake soundcurves to the location keyframe of the empty…
Not a pro myself, but maybe I can be of help. I am using something like the following code to select an object. In this example single_object has to point to the object you want to select (e.g. via single_object = bpy.data.objects[‘your_object’] or a loop):
I know the script isn’t right yet, but I just wont to show you my idea…
But the problem is, that I can not type Empty.0xy, because I have then errors…Do you know how I have to type it, that it works??