PDA

View Full Version : Lscript or Plugin Request


fastfinger
06-28-2003, 01:04 PM
Hi.
Whenever I rig something, there`s one thing that I really want to do.
I want to make the current objects`s position to be the Pivot point and make current positioin value to 0,0,0.
I mean i want to make record current object`s rest position.
I think this might be easy for Lscript writers.
Someone make me this Lscript plz~:thumbsup:

fastfinger
06-29-2003, 06:37 AM
I mean I want freeze transform in Maya

NanoGator
06-29-2003, 07:31 AM
File/Save transformed.

You'll have to reload it, but it'll do the job. :) (great for other things too!)

fastfinger
06-29-2003, 12:44 PM
Actually I want to do it to Nulls.
At once!! :D

NanoGator
06-29-2003, 10:39 PM
Nulls? Explain?

faulknermano
06-30-2003, 03:59 PM
freeze transform in maya will snap the pivot point to 0,0,0, am i wrong?

Kvaalen
06-30-2003, 04:26 PM
In lightwave under the Items menu choose Pivot>>Record Pivot rotation. Is that what you mean?

Halsu
06-30-2003, 11:57 PM
The following code snippet should do what you need:



generic
{
scene = Scene();
obj = scene.firstSelect();
if (obj.genus == 1)
{
ObjPosition=Mesh(obj.name).getPosition(scene.currenttime);
PivotPosition(-ObjPosition);
Position(0,0,0);
}
}

...just save it as a regular text file with .ls extension and off you go. One problem thopuh - it doesn't work with rotated objects...

CGTalk Moderation
01-15-2006, 01:00 PM
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.