I found it interesting to see that conditional display can be added to a P3D MDL via an
AttachPoint:
I find it interesting that you post on this thread at all. You must do it either as an olive branch, or as a provocation, which would qualify as trolling. Surely it must be your steadfast desire to spread knowledge, despite any consequences that would entail and if this were to be the case, it's reasonable to expect the post to be somewhat knowledgeable.
FYI, translated links are extremely difficult to extract, in order to review the unedited page and it's associated links. If you actually researched those links and went straight to the source, you would see that 29Palms informs exactly how the software works, by switching file extension and there is nothing mentioned about an attach point.
"The basic concept is a program that activates and deactivates files by changing the file extension."
https://shop.29palms.de/home/17-customizable-scenery-configurator-pro.html
Going back to Christians post on the Bahrometrix page, using the exact link you provided above, we see that there are two sentences, related only by proximity.
The Scenery Configurator LITE is used only in the FSX for switching the seasonal buildings / objects. In the P3DV3 and P3DV4 models can be provided directly in the 3-D software in the Attach Point Tool with a "Visibility"
.
So, Christian is talking about the Scenery Configurator and he is also talking about the "Attach Point Tool." These are two distinct procedures, one provides conditional display of textures using the P3D v4 model material attributes, this is the technique I employed and I did not use any attach point. I used specific texture files, that the software did, or did not render, based on parameters defined in the modeldef.xml file. I manually edited the modeldef.xml to define my intended visibility condition, then I hard coded that visibility condition into the model, by compiling it through MCX.
I suggest the translational quality of the Google algorithm, may have allowed you to believe Christian was saying, "models can be provided directly into P3Dv4," while in actuality, he was saying, "in P3Dv4 models can be provided with the ability." Above and beyond all else, Christian was referring to the Scenery Configurator in relation to FSX. This thread, and the question you replied to, are specific to P3Dv4.
To be absolutely clear, the Attach Point Tool, is a 3ds Max script. It works only in that particular 3d software and it only uses legacy software that is also accessed by other software, like MCX. It performs no functions in 3ds Max, that can't be performed other ways.
The Attach tool included in this SDK is a MAXScript plug-in that allows you to attach special effects, library objects, visibility conditions, and set active mouse rectangles for use with virtual cockpits, to your 3D models. It also allows you to create landable platforms, remove crash boxes from parts of your model and attach beacons or other simulation driven objects to your models.
http://www.prepar3d.com/SDKv3/LearningCenter/modeling/using_modeling_tools.html#The Attach Tool
Since the remainder of the post goes down the rabbit hole of a non existent, 3d model-attachment/scenery enhancement tool, it seems more provocative, than informative, to me.
Just trying to do similar. I want an object to appear at Dawn day and dusk only. I am clueless how the write the code for it. Is it even possible? Any helpers?
Well, myself and others have confirmed that Arno's code works, I consider that fact to be a pretty good clue. I believe your goal is theoretically possible, but the exact terms to define the dawn and dusk values aren't readily known. If I could make a suggestion, it would be to adapt my solution to a range of time that defines, roughly, both dawn and dusk and then have two identical models, one of which appears at either interval.
If that were not exact enough, the only other course I can suggest is to search the modeldef.xml for either of those terms. I have searched very thoroughly for a published list of P3D v4 conditional material visibility variables. If you're feeling adventurous, you might try substituting the effect visibility terms into the code for material visibility. There's a table of them, just below the section of the SDK that describes the Attach Point Tool.