THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/10/2004 at 08:03, xxxxxxxx wrote:
Howdy,
Well, don't worry. I was unclear when I asked the question (I was grasping at straws).
What I'm trying to accomplish is to have a tag create object link elements in the AM when the user clicks an "Add" button and have it subtract them when the user clicks a "Subtract" button. There aren't many specific examples here in the forum (according to the search parameters I was entering) and the only examples in the SDK are the AsyncTest (which is not an AM description) and the MorphMixer (which does not create additional elements via a button)
After going down the wrong track (trying to use a .res file and Show/Hide the elements) and finally figuring out how the MorphMixer actually works in Cinema 4D (no usage docs), I've switched tracks and I'm now creating the description elements in GetDDescription().
The tag has to somehow keep track of the elements that get added and subtracted, and like I said before, I was grasping at straws to solve this. But, as always I seem go down the wrong track until I fall flat on my face and then end up backtracking until I stumble over the answer. What I'm doing now is, using a global counting variable that increases and decreases it's value as the buttons are clicked, and then storing that variable's value in the tag's BaseContainter.
Since I'm only learning as I go and there seems to be no specific examples that do "exactly" what I'm trying to do and there is no one standing over my shoulder telling me, "Don't go down that track!", it seems to take me forever to accomplish something that looks like it should be a simple task.
But hey, whataya gonna' do?
Oh and, thanks for the response. Even though I've switched tracks, you've given me something new to study.
Adios,
Cactus Dan