Heretic
Resource contributor
- Messages
- 6,830
- Country

THIS IS EXPERIMENTAL AND ABSOLUTELY NOT FOR THE FAINT OF HEART! YOU HAVE BEEN WARNED!
Unless it's already common knowledge, here's a short how-to on how to add an effect to a specific part in a hierarchy. This is especially useful for adding lights to flexing wings or moving parts.
I've successfully managed to attach a nav and strobe light to each flexing wingtip of an aircraft with this procedure, using nothing else but Notepad2 and MCX.
You really need to be comfortable with editing very large text files, finding stuff in MCX' hierarchy editor and, of course, adding effects in the attached object editor. A text editor with syntax highlighting, especially for bracket pairs is almost mandatory.
Well, here it goes...
1) Add an attached effect (e.g. nav light; fx_navgre) effect at the model origin. Note the effect name in the hierarchy viewer, e.g. effect06
2) Export model from MCX in .x file format
3) In MCX' hierarchy editor, find the nav light casing or wingtip geometry or other suitable geometry in the hierarchy editor
4) Note the first value from the "Bounding box - min" matrix minus the last digit, e.g. 3402.55 when 3402.556 is shown in MCX
5) CTRL+F your way through the exported .x file until you find this value and note the numbers of the parts in which the value can be found, e.g. "part90", "part 102", etc...
7) Note the second value from the "Bounding box - min" matrix minus the last digit, e.g. 67.20 when 67.201 is shown in MCX
8) CTRL+F your way through the exported .x file until you find this value and note the part number(s) that the value is found in, e.g. "part98", "part100", "part 102", etc...
9) Note the third value from the "Bounding box - min" matrix minus the last digit, e.g. -689.37 when -689.375 is shown in MCX
10) CTRL+F your way through the exported .x file until you find this value and note the part number(s) that the value is found in, e.g. "part64", "part90",..., "part 102", etc...
11) In this example, part 102 shares all 3 coordinates, so part 102 is most likely the target part you're looking for
12) Find the effect in the .x file by searching for "effect06". You will find "Mesh attpt_effect06". Scroll up until you see the associated "Frame frm_partNN {" line.
13) Mark the entire "Frame ..." entry for the part FROM THE BEGINNING OF THE "Frame..." LINE DOWN TO AND INCLUDING THE CLOSING "}"
14) Cut. Paste these lines into a temporary file, if it makes you feel safer.
15) Find the CLOSING "}" bracket for the "FRAME frm_part102" entry (syntax highlighting in Notepad2!) and paste the "Frame ..." entry for the effect into the space ABOVE it
16) Save the edited .x file and import it into MCX
17) Check the hierarchy editor. The effect should at least be in the hierarchy near the desired part.
18) Repeat the cutting an pasting in the .x file until you have pasted your effect into the "Frame ..." entry of the desired parent part.
19) Now open the attached object editor in MCX and move the effect to the desired location by altering its coordinates. Note that you will have to use very large, two or three digit values. Use trial&error to position the effect.
21) If so desired, add visibility conditions in the hierarchy editor.
20) Repeat the procedure for any other effects that you wish to add to the parent part or the model. Note that the parts are being renumbered after export!
21) Compile the model and check it out in FSX once you're done.
The hardest part is actually finding the parent part in the .x file and remembering to cut and paste the right amount of lines into the right location.
Hope it's useful to someone.
Unless it's already common knowledge, here's a short how-to on how to add an effect to a specific part in a hierarchy. This is especially useful for adding lights to flexing wings or moving parts.
I've successfully managed to attach a nav and strobe light to each flexing wingtip of an aircraft with this procedure, using nothing else but Notepad2 and MCX.
You really need to be comfortable with editing very large text files, finding stuff in MCX' hierarchy editor and, of course, adding effects in the attached object editor. A text editor with syntax highlighting, especially for bracket pairs is almost mandatory.
Well, here it goes...
1) Add an attached effect (e.g. nav light; fx_navgre) effect at the model origin. Note the effect name in the hierarchy viewer, e.g. effect06
2) Export model from MCX in .x file format
3) In MCX' hierarchy editor, find the nav light casing or wingtip geometry or other suitable geometry in the hierarchy editor
4) Note the first value from the "Bounding box - min" matrix minus the last digit, e.g. 3402.55 when 3402.556 is shown in MCX
5) CTRL+F your way through the exported .x file until you find this value and note the numbers of the parts in which the value can be found, e.g. "part90", "part 102", etc...
7) Note the second value from the "Bounding box - min" matrix minus the last digit, e.g. 67.20 when 67.201 is shown in MCX
8) CTRL+F your way through the exported .x file until you find this value and note the part number(s) that the value is found in, e.g. "part98", "part100", "part 102", etc...
9) Note the third value from the "Bounding box - min" matrix minus the last digit, e.g. -689.37 when -689.375 is shown in MCX
10) CTRL+F your way through the exported .x file until you find this value and note the part number(s) that the value is found in, e.g. "part64", "part90",..., "part 102", etc...
11) In this example, part 102 shares all 3 coordinates, so part 102 is most likely the target part you're looking for
12) Find the effect in the .x file by searching for "effect06". You will find "Mesh attpt_effect06". Scroll up until you see the associated "Frame frm_partNN {" line.
13) Mark the entire "Frame ..." entry for the part FROM THE BEGINNING OF THE "Frame..." LINE DOWN TO AND INCLUDING THE CLOSING "}"
14) Cut. Paste these lines into a temporary file, if it makes you feel safer.
15) Find the CLOSING "}" bracket for the "FRAME frm_part102" entry (syntax highlighting in Notepad2!) and paste the "Frame ..." entry for the effect into the space ABOVE it
16) Save the edited .x file and import it into MCX
17) Check the hierarchy editor. The effect should at least be in the hierarchy near the desired part.
18) Repeat the cutting an pasting in the .x file until you have pasted your effect into the "Frame ..." entry of the desired parent part.
19) Now open the attached object editor in MCX and move the effect to the desired location by altering its coordinates. Note that you will have to use very large, two or three digit values. Use trial&error to position the effect.
21) If so desired, add visibility conditions in the hierarchy editor.
20) Repeat the procedure for any other effects that you wish to add to the parent part or the model. Note that the parts are being renumbered after export!
21) Compile the model and check it out in FSX once you're done.
The hardest part is actually finding the parent part in the .x file and remembering to cut and paste the right amount of lines into the right location.
Hope it's useful to someone.

