GithubHelp home page GithubHelp logo

dicgi / txman_win Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 168 KB

:hammer: Arnold's TX Manager command prompt for Windows

License: MIT License

Batchfile 100.00%
arnold rendering command-line command-line-tool computer-graphics textures

txman_win's Introduction

Arnold's TX Manager command prompt for Windows

This is a command-line application to manage tx files for Arnold renderer.

Installation

  • 1.Download and install Anaconda(Python 3.6 version*).
  • 2.Open the command prompt and execute:
> conda update conda -y
> conda update anaconda -y

To confirm Anaconda's version:

> conda --version
  • 3.Clone this repository where you prefer.
  • 4.On command prompt go to cloned txMan_win directory and execute:
> conda env create --file requirements.yml
  • 5.Add the path of directory to PATH environment variable.

Settings

You can edit the file "settings.bat" to make it work properly.

  • To change the user name, edit the appropiate line to:
> set user=yourName

How to use

To execute txMan, go to the images directory that you will make the tx files and then run:

rem activate the "txman" environment.
rem see the installation guide.
> activate txman
rem execute txMan
> txman

txMan Header

The anatomy of principal command is:

[command] [flag]

So that the command denotes the action and the flag indicates the mode of an operation. E.g.:

$ list here

Where is list is the command that lists images on screen and here is the flag which indicates that the analysis will be done in current directory only.

Main commands

This is the first part of a typical command on txMan and will always be followed by a flag. The flag determines the behavior of the command. The main commands are:

  • list: Lists image files and prints on the screen.
  • log: Lists image files and saves in a log file. The file name will be required.
  • create: Creates tx files with the same image name. (this command will always overwrite existing files)
  • remove: Removes tx files.

Command flags

The main command will work according to a flag. The flags basically determines the group that will be analyzed. The flags are:

  • select: The command will be applied only on selected images or directories. A selection list will be required and the components must be separated by white spaces. Directories must have "\" at the end. E.g.:
* selection > imageA.jpg folderA\imageB.jpg folderB\

Therefore the principal command will be applied on imageA.jpg, imageB.jpg inside of the folderA and all images and dependencies inside of the folderB.

  • here: The command will be applied on all images in current directory.
  • tree: The command will be applied on all images and dependencies in current directory.

Filters

Every time that a command is executed a filter will be required.

txMan Filter

Filters are a way to make an accurate selection of the chosen group. The filters are:

  • all : All images on group will be selected.
  • grey : Only float and grayscale images will be selected, given a threshold.
  • color : Only colored or polychromatic images will be selected, given a threshold.
  • regex : The selection will be given by an regular expression.

The filters grey and color needs a threshold to works.

txMan Threshold

Threshold is a float number parameter that delimits the value r, given by:

txMan Threshold

Where R, G and B represents the image color channels. If r is less than threshold value then grey will be true. Otherwise color will be true.

Color convert

Every time a command create [flag] is executed it will be asked if you want to convert the colorspace. If the choice is yes then original colorspace and destination colorspace will be required.

txMan Color Convert

The possible values are "linear", "srgb" (sRGB) and "rec" (Rec709). For more information click here.

txman_win's People

Contributors

diegoinacio avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.