Yes, but it is a limit of the internal editor.
Since it appears you are using Acrobat 3D you might want to ask the question in that forum.
Your script contexts are messed up.
That script is expecting to be run at the document level because it's collecting a reference to the 3D API (via getAnnots3D). You also have an undeclared variable (camera_1).
If you want it to work as a 3D embedded script (not sure why) then you will need to remove the reference to "getAnnots3D.context3D" from the function, so you'd simply say
var Mycamera = .scene.cameras.getByIndex(0);
There's no point in using the first line of the function to activate the API, as the function wouldn't exist until it was active.
Your button will then need to target the function with a reference, so it'd be getAnnots3D(0).context3D.Update(3); (you will also want to put the activation command on the button's event)
thanks! it makes perfectly sense now! Having the 3D embedded script is very useful as the length of the data is so immense that it would be necessary to have an external text editor (even though I tried with one, it works finel; but when the same pdf is opened in another pc that doesn't have an external text editor it doesn't work any more.. it seems it's not able to access certain information stored in the 3d embedde file).
many thanks for the help!
ps. (I mistyped the camera variable...I meant Mycamera instead of camera_1, thanks for spotting it!)
You should check to see what version of Acrobat and OS is being used by the other user and check to see if there is some JS feature that does not work or works differently on that system.