Jump to content

how do i make a part variant that changes the model


Recommended Posts

the mk2 lander can, for example, has a variant that turns it into a pressurized rover cabin

for context, i'm making a circular structural plate that should have a variant that turns it into a ring

how do i add a variant that changes the plate's model into the specified ring?

Link to comment
Share on other sites

24 minutes ago, horrifiedbyeverything said:

the mk2 lander can, for example, has a variant that turns it into a pressurized rover cabin

for context, i'm making a circular structural plate that should have a variant that turns it into a ring

how do i add a variant that changes the plate's model into the specified ring?

It is to do with named objects in the heirarchy of the .mu model. If you look at the part variant module in the config while looking at the heirarchy in the 3D modeling program you will see that it hides 1 object while showing the other, then does the reverse for the other variant So you want 1 named object that is the plate and another that is the ring.

Link to comment
Share on other sites

19 hours ago, ColdJ said:

It is to do with named objects in the heirarchy of the .mu model. If you look at the part variant module in the config while looking at the heirarchy in the 3D modeling program you will see that it hides 1 object while showing the other, then does the reverse for the other variant So you want 1 named object that is the plate and another that is the ring.

and the variant in the config is something like this?

VARIANT
{
	name = plate
}
VARIANT
{
	name = ring
}

and the hierarchy in blender is like this?

plate
	plate.collider

ring
	ring.collider
Link to comment
Share on other sites

@horrifiedbyeverything

Not the ones with the collider suffix. They are invisible in game and are what kerbals and other parts bump into. You want the mesh that you see in game to be named for those parts. Give me a couple of hours and I will write up a simple tutorial with pics and put it in my part making thread and tag you.

Here is the link.

 

Edited by ColdJ
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...