Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Object Property being copied but not camera property

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<Kenny>
Posted
This action works properly anc copies the location from one object to the other.

<MTSAction Name="nametester" >
<MTSCopyProperty Src="namevariable::loc_" Dest="object2::loc_" />
</MTSAction>

I want to copy the location of one object to become the pivot point of the MTSCamera. Why doesn't this work correctly?

<MTSAction Name="nametester" >
<MTSCopyProperty Src="namevariable::loc_" Dest="MTSCamera:Razzvt_" />
</MTSAction>

Thank you for your help.

Kenny.DellaValle@textbookhero.com
 
Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hi Kenny !!

The property for the Camera Pivot is "pivt" and not "pivt_"

Remove the underscore.

Also I am doubtful if copying the location of the Object will help changing the Camera Pivot.

But you can always give it a shot...

All the Best.


Best Regards,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
<viewpointED>
Posted
If you'd like to copy an object's pivot value to the camera pivot's value you'll need to use a dummy object as a conduit between the original object's WorldMatrix and the camera pivot location.

  
	<MTSAction Name="set_camera_pivt" >
		<MTSCopyProperty Src="MTSInstance.some_instance::WorldMatrix" Dest="MTSInstance.placeholder::Matrix" />
		<MTSCopyProperty Src="MTSInstance.placeholder::loc_" Dest="MTSCamera::pivt" />
	</MTSAction>


--ED--
 
Reply With QuoteEdit or Delete MessageReport This Post
Junior Member
Posted Hide Post
Hi viewpointED,
I'm interested with your posted message.
My first question is :
It's not possible to set an object's pivot value to the camera pivot's ?

If not, I tested your MTS code in MTX file but I don't understand what is 'MTSInstance.placeholder'. I replaced 'MTSInstance.some_instance' by my MTSInstance clicked but what is placeholder.

Thanks in advance for your help.
 
Posts: 2 | Registered: March 28, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Object Property being copied but not camera property