Hi
This is one of the first scripted tools I try to create.
I'm working on a script for rigging repetetive LookAt systems.
The idea is to have two arrays the "HingedObject" and the "LookAtTarget"
So that when I create bunch of these I can create a "HingeObject" array and a "LookAtTarget" array, assign the Lookatconstraint and assign the target and finally keep the initial offset on all of them at once.
So I'm trying to get the array of LookAt targets but so far all I have is this.
(This is the feedback I get from the system when try to aquire the code to work with)
b = $box001 -- This is a box that I assigned a LookAt controller to
show B.transform.controller[2].LookAtConstraint -- show command returns the following
.weight (LookAt_Weight) : float array
.relative : boolean
.lookat_vector_length (Vector_Length) : float
.set_orientation : boolean
.target_axis : integer
.target_axisFlip : boolean
.upnode_axis : integer
.upnode_world : boolean
.pickUpNode (Pick_Upnode) : node
.StoUP_axis : integer
.StoUP_axisFlip : boolean
.viewline_length_abs (Viewline_Abs) : boolean
.upnode_ctrl (Upnode_Control) : integer
false
With nothing in the list
B.transform.controller[1].LookAtConstraint[1].name --returns
"Vector Length"
if I add object (targets) to the list the "Vector Length" is pushed down the array and gets replaced by "LookAt Weight 0"
Is "LookAt Weight 0" a internal variable for LookAt constraints target nodes?
If so How do I add/remove objects to the list?
It's the only array in the list of commands but I can't grab the name of the objects in the list.
How do I dig further into the workings of Max to get the info that I need?
miauu · 2019-02-08