Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SomethingSomethingDarkside

Pages: [1]
1
Thanks a lot for this. I was able to solve it thanks to your help.

Code: [Select]
sen=chunk.sensors[1]   
location_vect=me.Vector((0.1198,0,0))   
rotation_vect=me.Vector((-0.376965,-0.00629332,-0.209045))
location_accuracy_vect=me.Vector((0.003,0.003,0.003))   


#These 2 options in GUI: Slave Offset -> switch off "Adjust location/rotation"
sen.fixed_location = False
sen.fixed_rotation = False

ref = sen.reference
ref.enabled = True
ref.location_enabled = True
ref.rotation_enabled = True

ref.location = location_vect
ref.rotation = rotation_vect

ref.location_accuracy = location_accuracy_vect
ref.rotation_accuracy = location_accuracy_vect

#sen.location = location_vect
#sen.rotation = rotation_vect   

I ended up with this after some modification to fit my script. Last 2 lines seems to be unecessary.

2
I am looking for a way to enter Slave offset values for a multicamera setup.

The closest I could find in the API was this.

There are 2 sensors in the setup.

Code: [Select]
chunk.sensors[1].Reference.location_enabled=True
chunk.sensors[1].Reference.enabled=True
chunk.sensors[1].Reference.location=location_vect
chunk.sensors[1].Reference.location_accuracy=location_accuracy_vect

This code doesn't seem to do anything however.

Any help would be appreciated.

Pages: [1]