Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / Animation / Locking One Dimension of a Constrained Object
  RSS 2.0 ATOM  

Locking One Dimension of a Constrained Object
Rate this thread
 
48845
 
Permlink of this thread  
avatar
  • Total Posts: 101
  • Joined: 31 August 2010 07:17 AM

Is it possible to limit Contstrains to particular dimensions, please?

Say, I need to constrain the Camera (not Camera_Interest ) position according to a moving object. However, I need to have the Camera to be always in the same plane (Z plane, so I want to adjust only X, Y coordinates ), but the objects moves in all three dimensions.

I need to somehow lock constrained object along one (Z) dimensions.

Thanks.



Replies: 0
avatar

You can use a simple expression for that. It is automated in Softimage. Just open the objects kinematics and the camera kinematics. Drag the object translation axis over the camera´s and you will see the expression edito pop up where it should say something like:
objet.kine.local.posz
This means that the translation axis of the camera is equal to the traslation axis of the objects.



Sergio Gardella
Autodesk Certified Instructor
http://www.bloompixstudios.com

Replies: 1
/img/forum/dark/default_avatar.png

Hey Sergio,

thanks for the reply. You exactly understand what I mean. But somehow I can not bring your advice to practice:

I open Softimage Explorer, with my object and camera open. Because, I can have only one Global Transform PPG opened, I decide for my object Global Tranlastion PPG.

From there, I wish to do the drag’n drop, as you advised, but it does not work. I can not grab Position X, Y, Z and move it over anohter object in the Explorer. Moreover, because only one PPG can be open at a time, can I can have open both objects at the same time: MyObject and Camera.

Can you be more specific please, from where to where to do the drag and drop?

Thank you. Best Regards.

Author: Bunkai.Satori

Replied: 02 November 2010 03:10 AM  
avatar

Hi Sergio,

I found the answer. Thanks to you, I searched in Softimage Expressions, and found the way you mentioned. There were all the answers to my questions:

Creating a Simple Equivalency Expression
You can also easily create simple A = B expressions between parameters:

1. Open a new scene and get a primitive sphere and a null.

2. Translate the null in X a little to offset it from the origin and the sphere.

3. Select the sphere and press Ctrl+K to open its Local Transform property editor. Lock this property editor to keep it open (click its keyhole icon).

4. Select the null and press Ctrl+K to open a Local Transform property editor for it.

5. Drag and drop the animation icon for the null’s Position X parameter to the sphere’s Position X parameter in the other property editor.

6. Test the expression by translating the null in X: the sphere should follow in X.

7. Close the expression editor and the two property editors to keep the scene uncluttered.

Thanks again.



Replies: 0
avatar

You welcome!
I guess the thing was to lock the PPG. Sorry for not specifing it.



Sergio Gardella
Autodesk Certified Instructor
http://www.bloompixstudios.com

Replies: 0