how can I setup owner target relationship for surface constraints?

how can I setup owner target relationship for surface constraints?

Anonymous
Not applicable
573 Views
2 Replies
Message 1 of 3

how can I setup owner target relationship for surface constraints?

Anonymous
Not applicable

I wanted to set a surface constraint in maxscript

 

so in my case i have defined the surface constrain and its parameters.

How do I setup the owner and target relationship?

I just want theball to constrain to the surface of theball2 or visa versa.

thanks

 

theball = sphere name:"ball" position:[0,0,0]

theball2 = = sphere name:"ball2" position:[100,100,100]

jack = surface_position()

jack.surface = theball

jack.u = 3.5

jack.v = 24.5

jack.align  = 1
0 Likes
574 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

ok...since I figured it out but couldnt delete the posting in time. I will just post answer in case someone interested.

 

theball = sphere name:"ball" pos:[0,0,0]

theball2 = sphere name:"ball2" pos:[100,100,100]

theball.pos.controller = Surface_position()

theball.pos.controller.surface = theball2

theball.pos.controller.u = 3.5

theball.pos.controller.v = 24.5

theball.pos.controller.align  = 1

 

Message 3 of 3

Anonymous
Not applicable

 @Anonymous thanks for this - it answered my question! legend!

 

 

 

 

 

 

0 Likes