Goig!
06-06-2006, 02:41 AM
This is the problem I have, I want to make a Custom Attribute slider that moves one object 1 unit distance along local axis X and another object the same distance in the opposite direction. Basically the objects would swap positions.
By the way, a complication may arise from the fact that the second object itīs parented to the first object.
Now Iīve been squeezing my brain and I havenīt found how to make this, apparently simple thing. Itīs not that I canīt come up with the logical steps for it:
Slider with a value from 0 to 1, create a variable with the input from this slider, letīs call this variable "Bob"
The X position of the first object should be "X position + Bob"
The X Position of the second object should be "X position - 2*Bob" (since this object is a child of the first as the parent moves one unit it has to move back 2 units to end up in the original position of the first object... clear, no?
Quite simple, but I canīt figure out how to get it done. Any ideas?
By the way, a complication may arise from the fact that the second object itīs parented to the first object.
Now Iīve been squeezing my brain and I havenīt found how to make this, apparently simple thing. Itīs not that I canīt come up with the logical steps for it:
Slider with a value from 0 to 1, create a variable with the input from this slider, letīs call this variable "Bob"
The X position of the first object should be "X position + Bob"
The X Position of the second object should be "X position - 2*Bob" (since this object is a child of the first as the parent moves one unit it has to move back 2 units to end up in the original position of the first object... clear, no?
Quite simple, but I canīt figure out how to get it done. Any ideas?
