Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
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
 
Posts: 28 | Registered: May 25, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
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 Frown
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
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.
 
Posts: 28 | Registered: May 25, 2005Reply With QuoteEdit or Delete MessageReport This Post
Viewpoint Sr. Expert
Member
Picture of viewbrian
Posted Hide Post
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
 
Posts: 25 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community