Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How can i make Camera roll when attached to dummy object?

How can i make Camera roll when attached to dummy object?

Anonymous
Not applicable
821 Views
2 Replies
Message 1 of 3

How can i make Camera roll when attached to dummy object?

Anonymous
Not applicable
--Why am I unable to roll the dummy object and have camera roll to?
--It works with other axis. Script below

--I have read I may need a LookAt_Constraint but I dont understand how to use it in my simple case.
--Examples i see On the web are over complicating it for me.
--Can someone show me how to make this work. I would think it might be simple for a veteran scripter. 
--thanks.
------------------------------------------------------------
ResetMaxFile #noPrompt
clearListener()

c = targetcamera name:"gol"pos:[100,0,0]target:(targetObject pos:[0,0,0])
b = dummy name:"dummy" pos:[0,0,0] 
t = targetObject pos:[0,0,0]
c.target = b
c.parent = b

 

0 Likes
Accepted solutions (1)
822 Views
2 Replies
Replies (2)
Message 2 of 3

Swordslayer
Advisor
Advisor
Accepted solution

Will connecting the rotation of dummy in one axis to the roll angle of camera be enough for you?

 

b = dummy name:"dummy" pos:[0,0,0] 
c = targetCamera prefix:"gol" pos:[100,0,0] target:(targetObject pos:[0,0,0]) parent:b
c.controller.roll_angle.controller = b.rotation.x_rotation.controller

Btw. setting the target to be the dummy to basically makes the targetCamera a freeCamera instead so I didn't do that.

0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks very much!
0 Likes