Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Adding a new element to the world model ====== Example, adding a skiros:Location element to skiros:Scene-0: <code python> element = Element('skiros:Location') self._wmi.instanciate(element, relations=[{'src': 'skiros:Scene-0', 'type': 'skiros:contain', 'dst': '-1'}]) </code> ====== Modifying an element in the world model ====== Example, changing the position of an object: <code python> element.setData(':Position', [1.0, 0.0, 0.0]) self._wmi.update_element_properties(element) </code> Example, changing the frame id of an object: <code python> element.setProperty('skiros:FrameId', 'map') self._wmi.update_element_properties(element) </code> tutorials/using_the_skiros_world_model_from_python.txt Last modified: 2022/09/02 14:04by 127.0.0.1