Notifications
Clear all

[Closed] Need help with hierarchy "compensation"

Hello I need help with a 4 part array, I normally would just try to figure it out myself but im very busy this weekend and I need it by early next week. Basically what I need is, in terms of where a mesh or point is located in the scene explorer: an array that “is the parent” “is the child” “next” “previous” also these all need to be in integers so its not saying “mesh01” is the parent mesh, its saying 1 is the parent.

Here is a sample of the bases I need it to be built upon. in my main script I grab everything inside of the layer manager.


Parent_array=#()
Child_array=#()
Next_array=#()
Previous_array=#()
clearlistener()

for i = 1 to LayerManager.count-1 do(
	(LayerManager.getlayer i).nodes &nodes
	for n in nodes do(
		if superclassof n == geometryclass do(
			print n
		)
		if classof n == point do(
			print n
		)
	)
)

also lastly I need it to restart back to 0 when it adds points to the array so mesh 0 is 0 and point 0 is 0 mesh 1 is 1 and point 1 is 1 and so on and so fourth.
ALSO you do not have to worry if something is undefined in the array, that just means there is no parent or something and I can account for that in my final script.

If anyone is interested in helping me ill give them $20 when the script is finished “sent via paypal sometime next week”. Ill also send you my skype name if you feel like this explanation here is too vague. I don’t stray away far from my laptop when im at work.