User avatar
By deadalvs
#291202
hi ..

is it possible to have an object's attribute drive it's geometry ?

i am thinking about an input field (like the scale value) that drives for example the frame width in a window.

how's it possible or done best to create such intelligent objects without using construction history ?
User avatar
By DrMerman
#291220
Hey man :)

Something like this? :

http://www.drmerman.com/dump/windowFrame.mb

Basically, I've used the connectAttr command to connect the FrameWidth and FrameDepth attributes to the appropriate parts of the objects history, like this :
Code: Select all
connectAttr windowFrame.FrameWidth windowFrameWidth.localScaleX;
connectAttr windowFrame.FrameWidth windowFrameWidth.localScaleY;
connectAttr windowFrame.FrameWidth windowFrameWidth.localScaleZ;

connectAttr windowFrame.FrameDepth windowFrameDepth.localTranslateZ;
You might have to do some dynamic renaming in your script if you want multiple windows, but this should get you on your way.

Hope it helps!

Matt

Found three more bugs/glitches: Sometimes, all of[…]

Let's talk about Maxwell 5.2

Is there any update regarding CPU engine ? Som[…]

Hello, I agree with Jasper ... I still have this […]

Squared looking surfaces while rendering

That's the typical "shadow terminator problem[…]