Message 1 of 7
Key Offset Script?

Not applicable
02-04-2012
12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm looking for an efficient way to control the visibility of multiple object. Ideally I'd like to script the following;
Have a null control the visibility of objects, as a null would pass the x or y translate of an object it would turn off or on.
Below is a set driven key basically doing what I'm talking about, ideally I'd like to modify this script so it can easily work with multiple objects that I select.
Does anyone know of any existing scripts that would do something similar as well? Always looking to save time 🙂
I'm looking for an efficient way to control the visibility of multiple object. Ideally I'd like to script the following;
Have a null control the visibility of objects, as a null would pass the x or y translate of an object it would turn off or on.
Below is a set driven key basically doing what I'm talking about, ideally I'd like to modify this script so it can easily work with multiple objects that I select.
Does anyone know of any existing scripts that would do something similar as well? Always looking to save time 🙂
setDrivenKeyframe -currentDriver locator1.translateX pCube1.visibility;
// Result: 1 //
select -cl ;
select -r locator1 ;
move -r -os -wd -0.20354 0 0 ;
select -cl ;
select -r pCube1 ;
setAttr "pCube1.visibility" 0;
setDrivenKeyframe -currentDriver locator1.translateX pCube1.visibility;
// Result: 1 //