# How do i access the methods for the Virtual Reality addon?

I want to access the methods for the add-on of virtual reality viewpoint. How would i do this. I have previously did the hover over the ui, and take the code from there but it did not work. are there an suggestions on what i should do?

• Oh, by the way, when you said it did not work, what did it do? Did it give you an error? – Billy S Jul 19 '16 at 21:18
• yeah it gives me a error – Alexander Pagan Jul 19 '16 at 21:21
• What is the error? – Billy S Jul 19 '16 at 21:22
• the error says: "RuntimeError: Operator bpy.ops.view3d.virtual_reality_display.poll() failed context is incorrect" – Alexander Pagan Jul 19 '16 at 21:23
• It sounds like you need to do something before you can run this. – Billy S Jul 19 '16 at 21:27

Ok, I found out what the problem is. I looked at the code for the virtual reality addon, and it wants a context argument for bpy.ops.view3d.virtual_reality_display.poll() Now unfortunately, I don't know what it wants for that argument, so you'll have to figure that out. Hope this helps!
UPDATE: context MIGHT be bpy.context, but I can't test it so I'm not sure.