algorithmic modeling for Rhino
I made this script for capturing screenshots to files automatically. You can create image file ( bmp, tga, jpg, pcx, png, tif ) from current view with using Rhino -ViewCaptureToFile
I used this for making sequence for animation Alphabetical Echo
- Write to PathToFile like C:\Users , without final "\"
- Extension can be bmp, tga, jpg, pcx, png or tif
- Don't forget to set Activate to "False" before close the GH file
UserObject: Current View Capture.ghuser | UserObject lies in User/Default menu
Example GH file: Current View Capture.gh
Great video, especially liked the audio, which is often neglected...
Wonder if there is any instructions for using this ?
can you show how this works? i can only make one frame, since it's a toggle. How did you do the animation?
You can use Timer and Counter by Kangaroo, SPM or Firefly for create new name. When name change (if Activate is True) new file is created.
See example of definition
Great tool. I made a slight change to the code so that when you set the boolean to true, it checks if the file name already exists. If it does it appends a number to the name. This way you can create multiple capture files. For example:
Code I added:
'Dim FullName As String = PathToFile & "\" & FileName & "." & Extension
Dim i As Integer
Dim FullName As String = PathToFile & "\" & FileName
While File.Exists(FullName & "-" & i & "." & Extension) = True
i = i + 1
FullName = FullName & "-" & i & "." & Extension
...another possibility is to add a timer along with an additional input for the time interval.
This is a useful change but I don't added this function because it is limiting way of numbering. In one may case I need use numbering as 001,002,... but in another case I need A,B,... I decided that more flexible means are creating file name separately from this component.
I'm new to GH but I know there are a number of uses for this tool. There are probably a hundred ways it could be modified for any number of purposes. It was great that you create it.
I rephrase my question.
Input as C:\Users\Stark\Desktop\ works fine but...
C:\Users\Stark\Desktop\New Folder doesn't. (The folder exists on the Desktop)
The out reads Path "..." does not exist!
What is the method to include folder path in the PathToFile?
Could be due to the space in the folder name. (just thinking out loud here...) try "New_Folder"
I just gave that a try... that doesn't seem to be the issue.
I tried "a" as folder name, and tried the following directory as well:
(and of course, the folder "a" already exists on the desktop)
Both of them returned Path "..." does not exist!
Seriously confused here... am I doing something wrong or is this the way this script was designed? :(