New to Dynamic Components
-
I've recently started to explore dynamic components and have a question.
Is it possible to constrain one component with parameters from another component?I was thinking of a way to get windows and doors to cut through double walls with one dynamic component controling position of the component used for cutting the back face.
-
You can do it but I wouldn't recommend it Pixero.
I've been there and in the end my conclusion is that I was wasting my time. I believe yours will also be the case...
Have you thought of using box scale to target from Fredo Scale instead?
EDIT:
For doing what you want, the trick is relating things to Parent!
For instance if you want to copy an element with a given length inside your hole cutter and use the hole cutter lenght you'd do this:
LenX=Parent!LenX
-
But is it possible to do it between two different dynamic components?
What I would like is one component that I place and explode.
Then if I select and move DC-A, DC-B would move along without having to be selected.
Possible? -
@pixero said:
But is it possible to do it between two different dynamic components?
What I would like is one component that I place and explode.
Then if I select and move DC-A, DC-B would move along without having to be selected.
Possible?Like a global variable for multiple components?
You can do that if your house is a DC... Click the house and a variable change then all windows shift... is that it?
-
Yeah, like a global variable that works between DC components.
Select one and move and the other comes along as it's constrained to the first.
I don't think making the whole house a DC would make a good workflow though.I've seen solutions with double cut components that you need to select both parts when moving the window.
I was just thinking there might be a more clever way... -
@pixero said:
Yeah, like a global variable that works between DC components.
Select one and move and the other comes along as it's constrained to the first.
I don't think making the whole house a DC would make a good workflow though.I've seen solutions with double cut components that you need to select both parts when moving the window.
I was just thinking there might be a more clever way...The problem is that when you have a component glued, moving another automatically must relate to the face axis system (like UV)...
How would you relate face axis for every direction?
Also, usually one hole cutting component would have the axis following the wall's axis, but the other would be reversed, as it's in the opposite side of the wall?
Probably you'd have to have each wall as a group and have each axis set by wall and then have the components follow axis.
-
But is it possible?
-
Yes it's possible. If they are both nested in the same component/group so their data can be passed from one to the other.
I don't think it would be good though.
Wouldn't it be better for you, since you have coded some plugins already, to have some observer to do that?
I mean if the axis of one component are inserted in a given world XYZ, and the axis of the second component are inserted in another world XYZ, you could keep both of them related to each other through that observer right?
With DC's It would be hard to control as there is no method (I know of) to link two independent DC's unless they are linked by a global DC nesting them.
-
Okay, thanks.
It was just that I was looking for a solution that didn't require the user to run a certain script/plugin. (It wasn't meant to be used by me only.)
Will think about this...
Advertisement