|
Hi all,
I am writing a driver that should transfer values from a scene in XSI to an external device. I’ve prepared the .xsidevice file to have a channel as follows:
...
<Channel>
<ChannelName>MotorSpeed</ChannelName>
<ChannelDescription>Motor speed</ChannelDescription>
<ChannelID>19</ChannelID>
<ChannelDirectionType>output</ChannelDirectionType>
<ChannelType>Slider</ChannelType>
<ChannelMin>0</ChannelMin>
<ChannelMax>1</ChannelMax>
</Channel>
...
However, in code, I’m not able to poll the value of the channel. It always comes out as 0. Here is how I’m querying the channel:
deviceManager->get_Item(CComVariant(L"My_Controller"),&device)
device->get_Channel(19,&m_MotorSpeed)
... later ...
CComVariant var(0.0)
m_MotorSpeed->get_Value(&var) // var is always 0, even if the attached parameter is not 0
The SDK MouseDriver example only shows how to use [in] channels, which works fine for me too. It is just the [out] that is not working…
Any ideas?
Thank you
|
|
|
|
Hi,
I have the same trouble and i’m very interesting about this topic.
Any issue ?
Thanks
3o3i
|
|
|
|
Ok, i’ve turn this into a python script that can manage channels in and out in xsi : http://www.ddrdev.fr/?file=Sections&op=zarticle&artid=7 , usefull for mocap in realtime °)
3o3i
|
|
|