Jump to content

Flip The Orientation The Part Will Appear In VAB


dboi88

Recommended Posts

Is it possible to create a new part from an existing part that appears flipped around when selected in the VAB?

Basically i have a command pod and fuel tanks and i want to use the pod as a matching rear adapter soi want it to appear in the VAB upside down when it is selected. Anyway of doing this without editing the actual model?
Link to comment
Share on other sites

[quote name='xEvilReeperx']If a plugin is an option, you can simply rotate the icon prefab (AvailablePart.iconPrefab) to point upside down[/QUOTE]

My only experience coding is with python so i'd probably look to modify the model before i tried writing a plug in.

If I was to use the iconprefab would this just turn around the thumbnail in VAB? I actually want the part to be upside down once selected.

If I was to try editing the model would it be a simple affair to just flip the whole model upside down?
Link to comment
Share on other sites

Oh, for some reason I read your post and thought "part icon" when you said selected. You should be able to create a new CFG using a MODEL{} node with the original model rotated. You'll have to edit the AttachNode locations manually but that should be straightforward. Here's a quick example of the mk1pod being flipped:
[spoiler=ConfigNode][code]PART
{
name = mk1pod.upsidedown
module = Part
author = xEvilReeperx

MODEL
{
model = Squad/Parts/Command/mk1pod/model
rotation = 180, 0, 0
}

// --- asset parameters ---
scale = 1
rescaleFactor = 1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_stack_bottom = 0.0, -0.4050379, 0.0, 0.0, -1.0, 0.0, 1
node_stack_top = 0.0, 0.6423756, 0.0, 0.0, 1.0, 0.0, 0
bulkheadProfiles = size1, size0
CoPOffset = 0.0, 0.5, 0.0
CoLOffset = 0.0, -0.35, 0.0
CenterOfBuoyancy = 0.0, 0.5, 0.0
CenterOfDisplacement = 0.0, -0.3, 0.0
buoyancy = 1.5
buoyancyUseSine = False

// --- editor parameters ---
TechRequired = start
entryCost = 0
cost = 600
category = Pods
subcategory = 0
title = Look! It's upside down!
manufacturer = Kerlington Model Rockets and Paper Products Inc
description = Originally built as a placeholder for a demonstration mock-up of a rocket, the Mk1 Command Pod was heralded as a far safer and more reliable option than its predecessors by rocket scientists throughout the world. It is now commonly seen in active service.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,1,0

// --- standard part parameters ---
mass = 0.8

dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.15
angularDrag = 2
crashTolerance = 14
maxTemp = 1200
skinMaxTemp = 2200

skinInternalConductionMult = 0.625
heatConductivity = 0.1 // 5/6ths default

vesselType = Ship

// --- internal setup ---
CrewCapacity = 1

INTERNAL
{
name = mk1PodCockpit
}

MODULE
{
name = ModuleCommand
minimumCrew = 1
}
RESOURCE
{
name = ElectricCharge
amount = 50
maxAmount = 50
}

MODULE
{
name = ModuleReactionWheel

PitchTorque = 5
YawTorque = 5
RollTorque = 5

RESOURCE
{
name = ElectricCharge
rate = 0.24
}
}

MODULE
{
name = ModuleScienceExperiment

experimentID = crewReport

experimentActionName = Crew Report
resetActionName = Discard Crew Report
reviewActionName = Review Report

useStaging = False
useActionGroups = True
hideUIwhenUnavailable = True
rerunnable = True

xmitDataScalar = 1.0

usageReqMaskInternal = 5
usageReqMaskExternal = -1
}
MODULE
{
name = ModuleScienceContainer

reviewActionName = Review Stored Data
storeActionName = Store Experiments
evaOnlyStorage = True
storageRange = 1.3
}

RESOURCE
{
name = MonoPropellant
amount = 10
maxAmount = 10
}

MODULE
{
name = FlagDecal
textureQuadName = flagTransform
}

MODULE
{
name = ModuleConductionMultiplier
modifiedConductionFactor = 0.003
convectionFluxThreshold = 3000
}
}[/code][/spoiler]
Link to comment
Share on other sites

[quote name='xEvilReeperx']Oh, for some reason I read your post and thought "part icon" when you said selected. You should be able to create a new CFG using a MODEL{} node with the original model rotated. You'll have to edit the AttachNode locations manually but that should be straightforward. Here's a quick example of the mk1pod being flipped:
[/QUOTE]

Many thanks I really appreciate the help
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...