Moving an object to different positions using presets

Is there a way to create presets for the transforms of an object so you can move it around to different position in the scene?  Like using different Nodes or Nulls you can select, to move it around?  

Comments

  • Richard HaseltineRichard Haseltine Posts: 101,507
    edited October 19

    How would that differ from a pose preset applied to the root node?Are you wanting a rlative offset from the current position? A script could do that - Scene.getPrimarySelection() (or get selected nodes and iterate), node.getXPoseControl(), thenget its value, increment it, and apply it.

    // More Priamry selection 1m to its left

     

     

    // Get the proimary seelction

    var oTarget = Scene.getPrimarySelection();

    // if a node was found...

    if ( oTarget ) {

    // get its X translate controller

    var oXCtrl = oTarget.getXPosControl();

    // get the value and add 100

    var oNewVal = oXCtrl.getValue() + 100;

    // update the value

    oXCtrl.setValue( oNewVal );

    }

    Sorry for the lack of formatting but code tags don't work. It needs more error checking, and doesn't try to allow for aniamtion, but those are doable modifications

    Post edited by Richard Haseltine on
  • TaozTaoz Posts: 9,963

    No, it's supposed to be absolute positions.  I want to move an object around so it's in a particular absolute position for each of several different fixed camera views.  Like if you could parent the object to each camera so it would move to the desired absolute position for a particular camera, whenever you select one.

    If that's not possible, I guess external pose presets is the way to go, yes. 

     

  • crosswindcrosswind Posts: 7,307

    Well, in my practice, a couple of ways:

    - Mostly recommended: Camera Magic + its Pose Add-on , which can memorize the Transforms of whatever a selected object for a certain Camera. Then the moment you switch to each camera, the memorized Transforms will be applied to that object, i.e. the object will "go to that position".
    - Parent the object to each Camera, then save a Hierarchical Pose Preset... but apparently this way is a bit cumbersomoe ~

  • TaozTaoz Posts: 9,963

    crosswind said:

    Well, in my practice, a couple of ways:

    - Mostly recommended: Camera Magic + its Pose Add-on , which can memorize the Transforms of whatever a selected object for a certain Camera. Then the moment you switch to each camera, the memorized Transforms will be applied to that object, i.e. the object will "go to that position".
    - Parent the object to each Camera, then save a Hierarchical Pose Preset... but apparently this way is a bit cumbersomoe ~

    Camera Magic seems to be the solution here yes.  Thanks!

Sign In or Register to comment.