On 12/06/2014 at 01:13, xxxxxxxx wrote:
Say I have a cube and select the top 4 points. How do I move,rotate, scale that 4 points with python.:blush:
On 12/06/2014 at 01:13, xxxxxxxx wrote:
Say I have a cube and select the top 4 points. How do I move,rotate, scale that 4 points with python.:blush:
On 13/06/2014 at 09:19, xxxxxxxx wrote:
I came this far:
Pnt_Obj = doc.SearchObject("Cube")
Pnts_List = [1,3,5,7]
for i in Pnts_List:
Vec = Pnt_Obj.GetPoint(i)
PosX = Vec.x
PosY = Vec.y
PosZ = Vec.z
Pnt_Obj.SetPoint(i,c4d.Vector(PosX, PosY + Input1, PosZ))
Pnt_Obj.Message (c4d.MSG_UPDATE)
---------------------------------------------------------------
The problem is that it do adjust with the slider "Input1" but it just keep on adjusting because it keeps updating the Vector of the points. Please :cry: how do I fix this??
On 13/06/2014 at 11:11, xxxxxxxx wrote:
This might help (the actual math). Another "dirty way" is to create a cluster from the selected points rotate the cluster and then kill the object. It's a lot more work to do, and slower, but will get the result you want.