scripted Controller (self ref)

How do you reference an objects self in a scripted controller?

Example. I have a box and I want each box to reference their own width parameter. how do i do that in the scripted controller?

$.width ??

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

Thanks Branko for the

Thanks Branko for the explanation.
that helped a lot.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

barigazy's picture

Always John, my pleasure :)

Always John, my pleasure :)

barigazy

barigazy's picture

i think this is better

i think this is better solution than scripted_ctrl

masterObj = Box width:20 length:20 height:20 pos:[0,0,0] name:"Master001" wirecolor:red
masterObj[4][2].track = Bezier_Float()
for b in 1 to 10 do
(
	slave = copy masterObj
	slave.wirecolor = blue
	slave.name = uniquename "Slave"
	slave.pos = [0,(b*30),0]
	slave[4][2].track = masterObj[4][2].track
)

barigazy

kimarotta's picture

Hey Barigazy... I can ask a

Hey Barigazy... I can ask a question? Which is the number [4] and [2] in "masterObj[4][2].track = Bezier_Float()" ... ?

kimarotta.com.br
3d Artist  

barigazy's picture

Create a box and type in

Create a box and type in listener $Box001[4] and $Box[4][2] and you'll
get the answer.
Image and video hosting by TinyPic

barigazy

kimarotta's picture

very very good ... Great

very very good ... Great explanation ... and very thanks

kimarotta.com.br
3d Artist  

kimarotta's picture

I could not understand your

I could not understand your question ... would be something with wire parameters?

kimarotta.com.br
3d Artist  

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.