Script to display an Attribute in the Channel Box as keyable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
there is a frequent task I have to do:
Always to set the ISO of an camera on "keyable" in the Channel Box, so that I can access that attribute in the channel box.
I tried to script this, but I have no deep knowledge. Please help, how to do it right:
string $Cameras[] = `ls -sl -fl`; // storing the camera
// I have actually to select the shape of the camera, ho to do this?
setAttr $Cameras -k on vrayCameraPhysicalISO; // this only gives an syntax error. Itried different other possibilities, which also didn't work
The desired attribute is called "MyCameraname.vrayCameraPhysicalISO"
Echo commands gave me this:
PS_moveToKeyable Keyable RenderCam;
setAttr -k on |Group_of_cameras|RenderCam|RenderCam.vrayCameraPhysicalShutterSpeed;
button -e -en 1 KEYABLE_Button; button -e -en 1 NONKEYABLE_Button; textScrollList -e -da KEYABLE_List; textScrollList -e -da DISP_NONKEYABLE_List;
Thanks for help!