Cameraline


#1

Hey guys,

I have a script called Cameraline(RhV4).rvb that I got from Thomas Anagnostou’s www.rayflectar.com/Rhino/RhinoScripts-Gallery.htm a while ago, maybe a few years ago.

It is supposed to align the camera-target with a line but it doesn’t seem to be working. One weird thing is that I dragged it in to my open instance of Rhino and it registered and appears as an alias for cameraline with ! _-loadscript “C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\my_scripts\CameraLine(RhV4).rvb” But when I run it the program says it can’t find it even though I know it’s there in the folder where I keep my scripts that I dragged it from.

If I drag it in again, it will work for a second and allow me to select a line but it doesn’t quite work. I want to use it to create absolutely dead centered views in my Perspective viewport of long axial sets like the inside of a plane that I’m designing.

I wonder if it’s out of date or needs tweeking? If anyone can help me with this I would really appreciate it.

Thank you.CameraLine(RhV4).rvb (1.5 KB)


#2

@cosmas,

when i run the script from within the EditScript dialog, it works. [quote=“cosmas, post:1, topic:43744”]
One weird thing is that I dragged it in to my open instance of Rhino and it registered and appears as an alias for cameraline
[/quote]

This script is not set up to register an alias when it is dragged on an open instance of Rhino. It is set up to be run just by calling _LoadScript. If you drag it onto Rhino, it will also run once. Maybe verify the path which is used in your “cameraline” alias.

Alternatively, add the path to your script under:

Rhino Options / Files / Search Paths / File Search Paths

second create an alias or a button with this command:

_-LoadScript CameraLine(RhV4).rvb

any better ?

c.


#3

Thank you, Clement. I really appreciate it.