|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi,
I have a simple doubt. I load dynamically objects to a scene and each object has the following structure: <MTSScene Version="330"> <MTSInstance Name="ParentNameX"> <MTSInstance Name="Child_01" /> <MTSInstance Name="Child_02" /> <MTSInstance Name="Child_03" /> </MTSInstance> </MTSScene> The ParentName is different for each object I load but the child names are always the same. As I know the ParentName I would like to be able to access a specific node like: ParentName1.Child_01.Property I generally use SetProperty to set a property, the problem is that when I try: vmp.SetProperty('MTSInstance.Child_01', 'rot_', rotatey180, 'mts_pnt3d');
It sets the property to ALL Child_01 nodes, and I would like to set for example just the property of the ParentName1.Child_01. Is it possible? How can I do it using vmp.SetProperty? I tryed the following code but it doesn't work. vmp.SetProperty('ParentName1.Child_01', 'rot_', rotatey180, 'mts_pnt3d');
Thanks, Marcelo Muniz |
||
|
|
Member |
There’s no method that I know that would do this. We’ve always set a standard procedure here to use unique names across all instances, geometries, and materials (if needed). I know there should be a way to do this now with the latest DOM, but I haven’t had the time to mess around with it
|
|||
|
|
Member |
Ok. But this doesn't solve my problem. I work with thousand models and there is no way I can ensure different names for instance, geometry and materials.
Maybe this could be a nice feature for a future version. |
|||
|
|
Viewpoint Sr. Expert Member |
It should be possible to access the DOM by the child’s number. Check out the DOM information in the release notes for the 3.0.15.x release http://developer.viewpoint.com/dc/docs/release_notes/vmp_win_3015_relnotes.pdf
There are not many examples around using the more sophisticated DOM but I’ll see if I can turn one up. If you get what you need form the document maybe you can share yours? ~B |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

