PDA

View Full Version : duplicateReference isn't working...


drossxyu
04-27-2006, 11:34 PM
So I'm trying to duplicate a reference as it rides along a path. I'm basically mimicking "Animation Snapshot" but instead it should duplicate the reference instead of just duplicating and creating a new un-referenced object. So I echoed all commands and found duplicateReference being called from "/AW/Maya7.0.1/scripts/others/duplicateReference.mel //"

duplicateReference(0,"");

if I pass it a 0, it should duplicate whatever is selected instead. When I run my script it does duplicate the reference but it creates it at the origin. There doesn't seem to be any other paramaters for using the script. Any ideas? See my script below :


global proc dupeOnPath()

{

int $i;

int $endInt = 102;

for ($i = 101; $i <= $endInt; $i++){

currentTime -e $i;

select -r Ref:coaster_light_MOVER ;

duplicateReference(0,"");

select -cl;

}

}

CGTalk Moderation
04-27-2006, 11:34 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.