Lay-out formatting Cinema 4d Dialog (R13) For this tutorial I used

Similar documents
How to lay out a web page with CSS

Table Basics. The structure of an table

Labels and Envelopes in Word 2013

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

Custom Label and Paper Sizes Guide

P3e REPORT WRITER CREATING A BLANK REPORT

Microsoft Excel 2010

Oskari UX Guide Cybercom Finland Oy

Instructions for Formatting MLA Style Papers in Microsoft Word 2010

While editing a page, a menu bar will appear at the top with the following options:

Nauticom NetEditor: A How-to Guide

The Newsletter will contain a Title for the newsletter, a regular border, columns, Page numbers, Header and Footer and two images.

Inserting a table plus all related tips on the table

Creating Forms. Starting the Page. another way of applying a template to a page.

Exploring Microsoft Office Word 2007

Microsoft Office Word 2016 for Mac

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1.

EDITOR GUIDE. Button Functions:...2 Inserting Text...4 Inserting Pictures...4 Inserting Tables...8 Inserting Styles...9

Week 5 Creating a Calendar. About Tables. Making a Calendar From a Table Template. Week 5 Word 2010

Taking Fireworks Template and Applying it to Dreamweaver

FrontPage 2000 Tutorial -- Advanced

How to lay out a web page with CSS

1. Open the Paragraph Formatting Data File (attached to Engrade with this worksheet).

Enterprise Architect. User Guide Series. Wireframe Models. Author: Sparx Systems. Date: 30/06/2017. Version: 1.0 CREATED WITH

Table of Contents Welcome to Menu.Applet... 2 Why Java -based menus?... 2 Basic terminology... 2 Getting to know Menu.Applet... 4 Creating a new menu

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

REPORT DESIGNER GUIDE

SPARK. User Manual Ver ITLAQ Technologies

News Ticker. User Guide

JIRA Editor Documentation Pasting from Word, Excel or Outlook

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

3. Click the Change Case button. 4. On the menu, click the desired case option. Managing Document Properties

Creating accessible forms

Access: Printing Data with Reports

Understanding Acrobat Form Tools

Creating Visually Appealing Documents. Word Module 2. Diocese of St. Petersburg Office of Training

Fall 2016 Exam Review 3 Module Test

Formatting Spreadsheets in Microsoft Excel

EXCEL TUTORIAL.

Using Microsoft Word. Working With Objects

The HOME Tab: Cut Copy Vertical Alignments

MS Word Professional Document Alignment

WEEK NO. 12 MICROSOFT EXCEL 2007

Excel 2003 Tutorial II

Creating a new project To start a new project, select New from the File menu. The Select Insert dialog box will appear.

MS Office Word Tabs & Tables Manual. Catraining.co.uk Tel:

Getting Started. Custom Reports Software

POS Designer Utility

How to Format Modern Language Association (MLA) Style Papers

How to lay out a web page with CSS

Instructions for Display of Imaging Studies Using Stentor isite

To learn more about the Milestones window choose: Help Help Topics Select the Index tab and type in the feature. For Example toolbox.

REPORT DESIGNER GUIDE

ArmCAD 6. reinforced concrete detailing program [updated for Build 2028]

CSS (CASCADING STYLE SHEETS) LAYOUT: INTRODUCTION ON PAGE BACKGROUNDS. By Ted Mitchell

Excel. Tutorial 1 Getting Started with Excel. Tutorial 2 Formatting a Workbook. Tutorial 3 Working with Formulas and Functions COMPREHENSIVE

Designing the Home Page and Creating Additional Pages

Publisher Training Manual. Studio 2, Edenderry Court 13 Bayham Road Sevenoaks Kent TN13 3XB

Web design and content management from Microsoft FrontPage allows you to create, design, modify, and update your own website without learning any

Enterprise Architect. User Guide Series. Wireframe Models

SmartBar for MS CRM 2013

Overview. What are layouts Creating and using layouts Common layouts and examples Layout parameters Types of views Event listeners

elearning Administrator User Manual

Reference Services Division Presents. Microsoft Word 2

CONVERSION GUIDE Financial Statement Files from CSA to Accounting CS

Enterprise Architect. User Guide Series. Wireframe Models. Author: Sparx Systems Date: 15/07/2016 Version: 1.0 CREATED WITH

Dreamweaver Tutorial #2

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Introduction to IBM Rational HATS For IBM System i (5250)

Creating and Managing Your Personal Mines Website on WordPress

Working with Tables in Word 2010

Setting Up a Paper in APA Style Using Microsoft Word 2008 for MACs

Managing Document Properties

Creating a Spreadsheet by Using Excel

Setting Up a Paper in APA Style Using Microsoft Word 2007

GIMP WEB 2.0 BUTTONS

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

Zeppelin Website Content Manager User Manual

Use the Windows Start button. Use a desktop shortcut

Form into function. Getting prepared. Tutorial. Paul Jasper

MICROSOFT ACADEMY WORD STUDY GUIDE FOR CERTIFICATION EXAM

SIMPLE TEXT LAYOUT FOR COREL DRAW. When you start Corel Draw, you will see the following welcome screen.

Adobe Dreamweaver CS6 Digital Classroom

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.

Starting Excel application

Tutorial: Getting Data into Your Spreadsheet

SAMLab Tip Sheet #4 Creating a Histogram

What is Word? How to Open Word. Intro to Word 2010 by Lodi Memorial Library Developed by Barb Hauck-Mah for ESL Literacy Grant

Excel 2016 Basics for Windows

Forms/Distribution Acrobat X Professional. Using the Forms Wizard

CONVERSION GUIDE Financial Statement Files from CSA to Workpapers CS

Creating a Website with Publisher 2016

Web Development. With PHP. Web Development With PHP

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview

Contents. Group 2 Excel Handouts 2010

Karlen Communications Citations and Bibliography in Word. Karen McCall, M.Ed.

Transcription:

Lay-out formatting Cinema 4d Dialog (R13) For this tutorial I used http://villager-and-c4d.cocolog-nifty.com/blog/2011/12/c4d-python-r1-1.html. You define the widgets using some common arguments: widget ID flags, defining the layout initw (int) Initial width. inith (int) Initial height. specific for the widget Give each widget a unique id! Width / height are set automatically when you set it to 0. Script 1: Grouping widgets Use SetTitle() to give your dialog a name. You can group widgets by placing them inside a Group. Additionally you can define groupborder and borderspace. GroupBegin() GroupBorder() GroupBorderSpace() Widgets GroupEnd() Use GroupBorderNoTitle() if you don t have a title. Otherwise there ll be a small gap in the border where the title would be. Border flags Space Border GroupBorderSpace () are set in the clockwise direction from the left by the gap between the border and widgets (1.Left margin, 2.Top margin, 3.Right margin and 4.Bottom margin). self.settitle('testscript') self.adddlggroup(c4d.dlg_ok c4d.dlg_cancel)

Script 2: Flags Using flags you can define the lay-out of your widgets. Width / height are set automatically when you set initw and inith to 0. self.groupbegin(10000, c4d.bfh_scalefit, 2, title = 'test') self.addbutton(1000, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1001, c4d.bfh_scalefit, 0, 50, 'BFH_SCALEFIT') self.addbutton(1002, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1003, c4d.bfh_right, 0, 0, 'BFH_RIGHT') self.addbutton(1004, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1005, c4d.bfh_center, 0, 0, 'BFH_CENTER') self.addbutton(1006, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1007, c4d.bfh_left, 0, 0, 'BFH_LEFT') self.addbutton(1008, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1009, c4d.bfv_top, 0, 0, 'BFV_TOP') self.addbutton(1010, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1011, c4d.bfv_center, 0, 0, 'BFV_CENTER') self.addbutton(1012, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1013, c4d.bfv_bottom, 0, 0, 'BFV_BOTTOM') self.addbutton(1014, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1015, c4d.bfh_left c4d.bfv_top, 0, 0, 'BFH_LEFT BFV_TOP') self.addbutton(1016, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1017, c4d.bfh_left c4d.bfv_center, 0, 0, 'BFH_LEFT BFV_CENTER') self.addbutton(1018, c4d.bfv_scalefit, 0, 50, 'Button') self.addbutton(1019, c4d.bfh_left c4d.bfv_bottom, 0, 0, 'BFH_LEFT BFV_BOTTOM') Script 3: Checkbox, Button GeDialog.AddCheckbox (id, flags [, initw = 0] [, inith = 0] [, name ='']) GeDialog.AddButton (id, flags [, initw = 0] [, inith = 0] [, name ='']) Nothing special, except name defining the text displayed. self.addcheckbox(1001, c4d.bfh_scalefit, 0, 0, 'Checkbox') self.addbutton(1002, c4d.bfh_scalefit, 0, 0, 'Button') Script 4: Static text GeDialog.AddStaticText (id, flags [, initw = 0] [, inith = 0] [, name =''] [, borderstyle = 0]) Besides the Group borderstyle, you can also define the borderstyle for StaticText. Border style is the same as the border of the group. self.addstatictext(1000, c4d.bfh_scalefit, 0, 0, 'StaticText') self.addstatictext(1001, c4d.bfh_scalefit, 0, 0, 'StaticText',c4d.BORDER_THIN_IN)

Script 5: Edittext GeDialog.AddEditText (id, flags [, initw = 0] [, inith = 0] [, name =''] [, editflags = 0]) Edit flags: EDITTEXT_PASSWORD Password field. When you enter text in a password field, text appears as ***. self.addedittext(1000, c4d.bfh_scalefit, 100, 0) self.addedittext(1002, c4d.bfh_scalefit, 100, 0, c4d.edittext_password) Script 6: MultiLine Edittext GeDialog.AddMultiLineEditText (id, flags [, initw = 0] [, inith = 0] [, name =''] [, style = 0]) Using the styile options you can define how the text is displayed. style (int) A combination of the following flags: DR_MULTILINE_MONOSPACED DR_MULTILINE_SYNTAXCOLOR DR_MULTILINE_STATUSBAR Monospaced font. DR_MULTILINE_HIGHLIGHTLINE Highlight lines. DR_MULTILINE_READONLY DR_MULTILINE_PYTHON DR_MULTILINE_WORDWRAP C.O.F.F.E.E. syntax highlighting. Display a statusbar with the cursor position. Read only multi line field. Python syntax highlighting. Word-warp multi line field. self.addmultilineedittext(1000, c4d.bfh_scalefit, 0, 90) self.addmultilineedittext(1001, c4d.bfh_scalefit, 0, 90,c4d.DR_MULTILINE_MONOSPACED) self.addmultilineedittext(1002, c4d.bfh_scalefit, 0, 90,c4d.DR_MULTILINE_SYNTAXCOLOR) self.addmultilineedittext(1003, c4d.bfh_scalefit, 0, 90,c4d.DR_MULTILINE_STATUSBAR) self.addmultilineedittext(1004, c4d.bfh_scalefit, 0, 90, c4d.dr_multiline_monospaced c4d.dr_multiline_syntaxcolor c4d.dr_multiline_statusbar) Script 7: EditNumber / EditNumberArrows / Slider / EditSlider GeDialog.AddEditNumber(id, flags[, initw=80][, inith=0]) GeDialog.AddEditNumberArrows(id, flags[, initw=70][, inith=0]) GeDialog.AddSlider(id, flags[, initw=90][, inith=0]) GeDialog.AddEditSlider(id, flags[, initw=80][, inith=0]) These are the various ways to enter numbers: Plain, with up- and down arrows and sliders. self.addeditnumber(1000, c4d.bfh_scalefit, 80, 0) self.addeditnumberarrows(1001, c4d.bfh_scalefit, 50, 0) self.addslider(1002, c4d.bfh_scalefit, 90, 0) self.addeditslider(1003, c4d.bfh_scalefit, 80, 0)

Script 8: Color, AddColorField / AddColorChooser GeDialog.AddColorField (id, flags [, initw = 80] [, inith = 0]) GeDialog.AddColorChooser (id, flags [, initw = 80] [, inith = 0] [, layoutflags = False]) AddColorField is a bit unclear to me. I would use the ColorChooser directly. Clicking this field will open up the ColorChooser (Bodypaint Style). layoutflags (int) AddColorChooser Flags: DR_COLORFIELD_NO_BRIGHTNESS Disable the brightness control. DR_COLORFIELD_NO_COLOR DR_COLORFIELD_BODYPAINT Disable the color control. Use the Bodypaint style. Python code (separators are added to make it more clear): self.addcolorfield(1000, c4d.bfh_scalefit, 80, 12) self.addcolorchooser(1001, c4d.bfh_scalefit, 80, 0) self.addcolorchooser(1002, c4d.bfh_scalefit, 80, 0,c4d.DR_COLORFIELD_NO_BRIGHTNESS) self.addcolorchooser(1003, c4d.bfh_scalefit, 80, 0,c4d.DR_COLORFIELD_NO_COLOR) self.addcolorchooser(1004, c4d.bfh_scalefit, 80, 0,c4d.DR_COLORFIELD_BODYPAINT) Script 9: Radiogroup GeDialog.AddRadioGroup (id, flags [, columns = 0] [, rows = 0]) Using columns and rows, you can define how the radiogroup is grouped. The python code show the second example. Python code (second screenshot with 2 rows and 2 columns): self.groupbegin(10000, c4d.bfh_scalefit, 2, title = 'test') self.addradiogroup(1000, c4d.bfh_scalefit, 2) self.addchild(1000, 0, 'Radio A') self.addchild(1000, 1, 'Radio B') self.addchild(1000, 2, 'Radio C') self.addchild(1000, 3, 'Radio D')

Script 10: Combobox GeDialog.AddComboBox(id, flags[, initw=80][, inith=0][, specialalign=false]) Specialalign is not explained in the documentation (R13). self.addcombobox(1000, c4d.bfh_scalefit, 80, 0, False) self.addchild(1000, 0, 'Combo A') self.addchild(1000, 1, 'Combo B') self.addchild(1000, 2, 'Combo C') self.addchild(1000, 3, 'Combo D') Script 11: Separator Horizontal GeDialog.AddSeparatorH (initw[, flags=bfh_fit]) self.addcheckbox(1000, c4d.bfh_scalefit, 0, 0, 'Check A') self.addseparatorh(0, c4d.bfh_scalefit) self.addcheckbox(1001, c4d.bfh_scalefit, 0, 0, 'Check B') Script 12: Separator Vertical GeDialog.AddSeparatorV (inith[, flags=bfh_fit]) self.groupbegin(10000, c4d.bfh_scalefit, 3, title = 'test') self.addcheckbox(1000, c4d.bfh_scalefit, 0, 0, 'Check A') self.addseparatorv(0, c4d.bfv_scalefit) self.addcheckbox(1001, c4d.bfh_scalefit, 0, 0, 'Check B')