How to drive a polyobject's pivot point via a control curve ?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 09 September 2012   #1
How to drive a polyobject's pivot point via a control curve ?

got a simple question. simply, I build a curveCircle and PolyCube
I want that curveCircle drives PolyCube’s pivot point for change of poly’s pivot rotation purposes.
simply I used connection editor and I connected
curveController.TranlateX to polyCube1.RotatePivotX ...well Y and Z.
works fine till I translate the the curveController (move)

so if I move the curve;polyCubes goes weird places.

I want just set polyCube pivot that where curve translate position is while also maintaining its own place even if move the curve.

should I connect polyCube’s rotatePivotTranslateX Y and Z to somewhere that I couldnt investigate yet ?

in conclusion :
I wantto maintain poyCubes position even if I move the curve.
polyCube should stay its place.

possible via connection editor ?
thanks.

here a small preview of problemma
http://www.youtube.com/watch?v=GemA...eature=youtu.be

Last edited by hcetiner : 09 September 2012 at 05:24 PM.
 
Old 09 September 2012   #2
Hi,
What you are doing is correct but you miss a small thing.
Have the objctrl> group it to itself> have a null under the objctrl.
Now snap the objctrl group to the objects pivot.
Select the Null under the objctrl> objects group(geometry) and constraint it.
Create another ctrl pivotCtrl, group it to itself and snap it to either objects group(geometry) or the objctrl.
Now constraint the pivotCtrl's group to the null under the objctrl.
Now connect the pivotCtrl.tx, ty tz > objctrl.RotatePivotX,y,Z and objctrl.ScalePivotX.

To work with the pivot, move the pivot ctrl where u want and then select the objctrl to see the pivot at the desired position.
Rgds,
__________________
Prem
Download Vehicle Rig
Blog
 
Old 09 September 2012   #3
thanks for responding.
well...,
by the mean of constraint means
parenting ? parent constraint ? transform constraint ? transform+rotateConstraint ?
 
Old 09 September 2012   #4
Hi
Constraint is left to ur choice.
Rgds,
__________________
Prem
Download Vehicle Rig
Blog
 
Old 09 September 2012   #5
Wink

this is my result.
watch video and say whats wrong.I simply did clearly step by step 4 times.
and results are always weird.
I think I gotto write a scriptJob myself if you wont post a clear step by step tutorial.
or mel/python script steps
this is my Weird Result exactly did as you typed in your tutor.

http://www.youtube.com/watch?v=0qVPma1eHEM



1- Have the objctrl> group it to itself> have a null under the objctrl.
2- Now snap the objctrl group to the objects pivot.
3- Select the Null under the objctrl> objects group(geometry) and constraint it.
4- Create another ctrl pivotCtrl, group it to itself and snap it to either objects group(geometry) 5- or the objctrl.
6- Now constraint the pivotCtrl's group to the null under the objctrl.
7- Now connect the pivotCtrl.tx, ty tz > objctrl.RotatePivotX,y,Z and objctrl.ScalePivotX.

BOMB!


well now I started my scriptJob to solve this problemma.

anyway. thanks for your effort.

Last edited by hcetiner : 09 September 2012 at 11:06 PM.
 
Old 09 September 2012   #6
Hi,
you dont have two ctrl at all. 1. objctrl 2. pivot ctrl.

See the script editor commands:-
polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;
// Result: pSphere1 polySphere1 //
OutlinerWindow;
circle -c 0 0 0 -nr 0 1 0 -sw 360 -r 1 -d 3 -ut 0 -tol 0 -s 8 -ch 1; objectMoveCommand;
scale -r 1.97912 1.97912 1.97912 ;
rename "nurbsCircle1" "ObjCtrl";
// Result: ObjCtrl //
group; xform -os -piv 0 0 0;
select -r group1 ;
rename "group1" "objCtrl Group";
// Warning: line 1: Some characters in the new name were converted to '_'. //
// Result: objCtrl_Group //
circle -c 0 0 0 -nr 0 1 0 -sw 360 -r 1 -d 3 -ut 0 -tol 0 -s 8 -ch 1; objectMoveCommand;
scale -r 1.508034 1.508034 1.508034 ;
select -r nurbsCircle1 ;
rename "nurbsCircle1" "pivotCtrl";
// Result: pivotCtrl //
select -r pivotCtrl ;
select -r pivotCtrl ;
group; xform -os -piv 0 0 0;
select -r group1 ;
rename "group1" "pivotCtrl Group";
// Warning: line 1: Some characters in the new name were converted to '_'. //
// Result: pivotCtrl_Group //
select -cl ;
group -em; xform -os -piv 0 0 0;
select -r ObjCtrl ;
select -r null1 ;
rename "null1" "ObjCtrl Null";
// Warning: line 1: Some characters in the new name were converted to '_'. //
// Result: ObjCtrl_Null //
parent ObjCtrl_Null ObjCtrl ;
// Result: ObjCtrl_Null //
select -add pivotCtrl_Group ;
doCreateParentConstraintArgList 1 { "0","0","0","0","0","0","0","1","","1" };
parentConstraint -weight 1;
// Result: pivotCtrl_Group_parentConstraint1 //
doCreateScaleConstraintArgList 1 { "1","1","1","1","0","0","0","1","","1" };
scaleConstraint -mo -weight 1;
// Result: pivotCtrl_Group_scaleConstraint1 //
select -r pSphere1 ;
rename "pSphere1" "Sphere Geo";
// Warning: line 1: Some characters in the new name were converted to '_'. //
// Result: Sphere_Geo //
select -r Sphere_Geo ;
select -r Sphere_Geo ;
group; xform -os -piv 0 0 0;
select -r group1 ;
rename "group1" "Sphere_Geo Group";
// Warning: line 1: Some characters in the new name were converted to '_'. //
// Result: Sphere_Geo_Group //
select -r ObjCtrl_Null ;
select -add Sphere_Geo_Group ;
doCreateParentConstraintArgList 1 { "0","0","0","0","0","0","0","1","","1" };
parentConstraint -weight 1;
// Result: Sphere_Geo_Group_parentConstraint1 //
doCreateScaleConstraintArgList 1 { "1","1","1","1","0","0","0","1","","1" };
scaleConstraint -mo -weight 1;
// Result: Sphere_Geo_Group_scaleConstraint1 //
select -r pivotCtrl ;
select -add ObjCtrl ;
FreezeTransformations;
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;
select -r pivotCtrl ;
select -add ObjCtrl ;
ConnectionEditor;
nodeOutliner -e -replace pivotCtrl connectWindow|tl|cwForm|connectWindowPane|leftSide CW;
// Result: connectWindow|tl|cwForm|connectWindowPane|leftSide CW //
nodeOutliner -e -replace ObjCtrl connectWindow|tl|cwForm|connectWindowPane|rightSid eCW;
// Result: connectWindow|tl|cwForm|connectWindowPane|rightSid eCW //
connectAttr -f pivotCtrl.translateX ObjCtrl.rotatePivotX;
// Result: Connected pivotCtrl.translate.translateX to ObjCtrl.rotatePivot.rotatePivotX. //
connectAttr -f pivotCtrl.translateX ObjCtrl.scalePivotX;
// Result: Connected pivotCtrl.translate.translateX to ObjCtrl.scalePivot.scalePivotX. //
connectAttr -f pivotCtrl.translateY ObjCtrl.rotatePivotY;
// Result: Connected pivotCtrl.translate.translateY to ObjCtrl.rotatePivot.rotatePivotY. //
connectAttr -f pivotCtrl.translateY ObjCtrl.scalePivotY;
// Result: Connected pivotCtrl.translate.translateY to ObjCtrl.scalePivot.scalePivotY. //
connectAttr -f pivotCtrl.translateZ ObjCtrl.scalePivotZ;
// Result: Connected pivotCtrl.translate.translateZ to ObjCtrl.scalePivot.scalePivotZ. //
connectAttr -f pivotCtrl.translateZ ObjCtrl.rotatePivotZ;
// Result: Connected pivotCtrl.translate.translateZ to ObjCtrl.rotatePivot.rotatePivotZ. //
select -cl ;

rgds,
__________________
Prem
Download Vehicle Rig
Blog

Last edited by shinyprem : 09 September 2012 at 04:07 PM.
 
Old 09 September 2012   #7
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:02 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.