Maxwell Render

Maxwell Render Information Repository
It is currently Sun May 26, 2013 1:11 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Feb 07, 2009 2:22 pm 
User avatar

Joined: Sun Mar 20, 2005 5:44 pm
Posts: 2298
Location: plains of fucking gorgoroth !
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 ?

_________________
Death Metal Team

http://www.esri.com/software/cityengine/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2009 8:09 pm 
User avatar

Joined: Thu Feb 16, 2006 1:55 pm
Posts: 707
Location: UK
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:
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

_________________
I don't really take anything people say seriously until they've used at least 20, sometimes 25, words...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group