Ref Node Finger

Hello everyone,

I want to create a RefNode on the metacarpal bone of Finger3 in the standing model. The problem is that Finger2 to Finger5 are "connected". By looking into the "HandSeg.any" file I discovered that every Finger referes to the "Finger.any" file. In the first lines it says that different files are created for each bone. The problem is now, that as I create a RefNode on the metacarpal bone, it creates it for every metacarpal bone of Finger2 to Finger5. Does anyone know how I can create a RefNode only on Finger3?

Model Tree path for "HandSeg.any": Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Hand.Finger3

Model Tree path for "Finger.any": Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Hand.Finger3.Seg

Thanks for your help!

Hi Theresa,

Welcome to the AnyScript forum!

It's never a great idea to make changes in the AMMR files unless you are specifically trying to modify the body model. A lot of time goes in making the files and the models efficiently where files are made so that they can be reused by changing some references and parameters before including the file.

What you can do is add the following lines in your Main file:

Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Hand.Finger3.Seg.Metacarpal = {
      AnyRefNode testNode = {viewRefFrame = {Visible = On; RGB = {0.8,0.2,0.8}; ScaleXYZ = 3*{1,1,1}; };};
    };

This way, you open the scope of the Finger3 in your model and include your changes. There are two advantages of doing things like this. First, you don't change the AMMR files. The changes remain specific to the model. Second, you can make changes only to Finger3 by opening the scope to it, instead of changing a file that is reused in other places.

I hope this helps.

Best regards,
Dave

Hello Dave,

sorry for my late response. Thank you for your help! Everything works now :slight_smile:

Best regards,
Theresa