On 09/11/2016 at 07:08, xxxxxxxx wrote:
Is it possible to select objects one by one?
I want that because i want the script to select 1st object,do something(a code which i will put there)
than 2nd one - do that something,3rd and so one.
Here is my problem:
I have let's say a bunch of cubes and i want to transform in shapes like these ones
I have this code for point selection by index
import c4d #Welcome to the world of Python def main() : PointList=[1,3,7] #base_select_object obj = op.GetObject() points =obj.GetPointS() for i in PointList : points.Select(i)
unfortunately this works now only for python tag,I understand that is better in this case to make it work through Script Manager,but i don't know how to make it work there
Someone suggested that I would have to put these lines above the code
objects = doc.GetActiveObjects(1)**
for a in objects :**
So the steps would be the script first to select the points 1 and 3,Weld them and then points 5 and 7,Weld them also
But now it selects the points from all cubes and weld them all together,like this
PS:Can I upload images here only by Url?