int targets =Parameter("NumberTargets");
sequence = Parameter("targetsequence");
We have tried sequence as a string , array of strings , int,int[],char,lists.
We really need to know what this returns. We have tried everything we can think of, most of the time it gives us only the first element of the sequence. If anyone could help that would be great. We are working in CursorFeedbackTask.cpp inside of project CursorTask.
what does parameter("targetsequence") return
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: what does parameter("targetsequence") return
Sorry, my mistake. I missed that you were doing the cursor task. This is what you want.
-
lflint
- Posts: 2
- Joined: 14 Oct 2013, 23:00
Re: what does parameter("targetsequence") return
Hi boulay,
We have this link as well. What we are wondering is what is the actual return type in the code. No matter what we do it will only return the first index of sequence. We have tried accessing other elements in the list and it always returns the first one. The same holds true when we call the Paraemeters() function more than one time. It will always seem to be stuck on the first element of the list.
We have this link as well. What we are wondering is what is the actual return type in the code. No matter what we do it will only return the first index of sequence. We have tried accessing other elements in the list and it always returns the first one. The same holds true when we call the Paraemeters() function more than one time. It will always seem to be stuck on the first element of the list.
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: what does parameter("targetsequence") return
I'm not sure if the return of Parameter("paramName") is generally an instance of the Param class or an instance of the ParamValue class.
In any case, I think you can get what you need from the following.
CursorFeedbackTask inherits from FeedbackTask found in src/shared/modules/application
FeedbackTask.cpp defines TargetSequence as an intlist.
The following code is taken directly from FeedbackTask.cpp
In any case, I think you can get what you need from the following.
CursorFeedbackTask inherits from FeedbackTask found in src/shared/modules/application
FeedbackTask.cpp defines TargetSequence as an intlist.
The following code is taken directly from FeedbackTask.cpp
Code: Select all
for (int i = 0; i < Parameter( "TargetSequence" )->NumValues(); i++ )
{
int val = Parameter( "TargetSequence" ) ( i );
}
Who is online
Users browsing this forum: No registered users and 0 guests
