Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Driver "out" channel
  RSS 2.0 ATOM  

Driver "out" channel
Rate this thread
 
43719
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 28 May 2010 08:52 PM

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



Replies: 0
avatar

Hi,
I have the same trouble and i’m very interesting about this topic.
Any issue ?

Thanks



3o3i

Replies: 0
avatar
  • zozizozu
  • Posted: 08 June 2011 05:18 AM

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

Replies: 0