Author Topic: Getting the class for an output event  (Read 838 times)

How do I get the class on which the output event is used?

I have a brick
The brick has events

I want to know the number of output event parameters for the 4th event of the brick
I can use %brix.eventOutputIdx[3] to get Idx
So I want to use OutputEvent_GetNumParametersF romIdx(%class, %idx)
For that I need to know the class

How do I get the class?

.getClassName() otherwise i do not understand what you mean, sorry
« Last Edit: August 15, 2012, 10:34:54 AM by nerraD »

.getClassName()
Can't use it without object to use on
Also I need the class on that the event is used, not the class of the event

This is your fifth coding help topic on the first page, try to consolidate your questions into a single thread, especially if the questions are related


If I'm understanding what you're asking, I did it in one of my previously released add-ons.
Let me get it.

EDIT:
Code: [Select]
%event = InputEvent_GetInputEventIdx(%this.eventInput0);
%class = getWord(getField($InputEvent_TargetListFxDtsBrick_[%event],%this.eventTargetIdx[%i]),1);