Jump to content

Trouble with Attachment Nodes and Animations


Recommended Posts

I've taken the CommTech EXP-VR-2T antenna from RemoteTech and repurposed it via an MMconfg to act as an extender.

Things went well and I've duplicated the part and given it an attachnode at the top.

Here it is attached to a probecore with a RA-2 Relay Antenna attached. 

NAGE7fV.png

Unfortunately, when I extend the part this happens:

LNZDv7k.png

Is there anyone savvy in the ways of fixing it so the attachment node (and attached part) extend WITH the animation?

Here's the code for the MMconfig:

// 	 **********************************************************************************
//	***			File:	AS_Antenna_Extender.cfg
//	***		  Author:	TranceaddicT
//	***	Contributors:
//	***	 Description:	Repurposing an animated antenna as a structural extender
//	***	 	 License:	CC BY-NC-SA 4.0
//	 **********************************************************************************

+PART[RTLongAntenna3]:NEEDS[RemoteTech]:FINAL
{
	%name = deviceExtender
	%author = TranceaddicT

	!mesh = DELETE
	MODEL
	{
		model = RemoteTech/Parts/LongAntenna3/model
	}

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

//	 node rules: x, y, z, angx, angy, angz, size
	%node_stack_top = 0.0, 0.15, 0.0, 0.0, 1.0, 0.0, 0

	%TechRequired = Start
	%category = Structural
	%title = UL-101 Radial Extender
	%manufacturer = Unlimited, Ltd.
	%description = A plesant discovery after an engineer glued a pencil to the end of a CommTech EXP-VR-2T and started poking the Mission Controller from across the room.
	%tags = build connect construct extend structur support

	!MODULE[ModuleRTAntenna] {}
	!MODULE[ModuleSPUPassive] {}

	MODULE
	{
		name = TweakScale
		type = free
	}

	@MODULE[ModuleAnimateGeneric]
	{
		%actionGUIName = Toggle
		%allowManualControl = true
		%actionAvailable = true
		%eventAvailableFlight = true
		%eventAvailableEditor = true
		%eventAvailableEVA = true
		%evaDistance = 5
	}
}

 

Link to comment
Share on other sites

Yup thats exactly what will happen,  when you attach any other part to an animated part, either by surface or stack attach, you are not actually connecting to the part you think you are , in essence you are connecting all objects to the the base, all node positions are derived from the root.

The same thing happens if for example you attach something to at cargo bay door, the door will move while the attached object  will remain fixed. 

There's no point pursuing this as many have been down this road before you to no avail ( for me it was somewhen in 2013),  you are of course free to join those who have tried and failed. :)

There are ways around this by using plugins but otherwise it's not going to happen, we really wish it would but it doesn't

 

 

 

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