Message 1 of 3
Not applicable
10-12-2015
08:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Evening,
I'm new on VRed and i'm trying to work with the python APIs. I have problems to create a touch sensor on a node of my scene, probably I didn't understand how the api work.
I have a node in my scene, for example a Sphere, I compute the pointer to the object in this way:
ptr_sphere = findNode("Sphere")Now I would create a touch sensor for this node, and I followed the API instruction:
touch_1 = vrTouchSensor(ptr_sphere)
but in inspector of Touch Sensor I did not found the new element touch_1. Where's my mistake? Can anyone please help me?
I need another suggestion: if this step will work, how can I attach at this touchsensor a variant set loaded previously by xml?
Thank you for your reply
Solved! Go to Solution.