Create views from groups in linked models

I have a script that creates views from groups which works fine. However, when you want to create views from groups in linked models, the views are created in the wrong location. I assume this might be because the linked models are repositioned in the active model, but I’m not sure. Is there a workaround for this?
create views from groups from linked file.dyn (87.7 KB)

Hi,

Yes, if you notice the springs node has a ‘transform’ output… That should give you a vector you can use to move the elements into their correct position.

Hope that helps,

Mark

Actually, the transform output gives you the element location of the linked model. Or better said, the point giving corresponds with the project base point. So I’ll probably need to relate that point relative to the group origin and rotation. Not sure how to do that.

Hi,

Sure, so I think that if you use the link location from the transform and the location of the current project, you can do a vector by 2 points and use a translate node?

Something like that, you get the idea :slight_smile:

Good luck,

Mark