diff --git a/docs/changelog/index.html b/docs/changelog/index.html index 35027815..aa147ede 100644 --- a/docs/changelog/index.html +++ b/docs/changelog/index.html @@ -72,7 +72,7 @@
In the new your_new_module/__init__.py
file, you will import or code all the methods you want to expose and make available in Maya, for example to be used in a shelf or any other Python script. You can also register your Ramses callbacks there (read below for more information about Ramses callbacks).
Here is an example of such an __init__.py
file, assuming you have two other files (anotherFile.py and aSecondFile.py) in the same folder, containing the actual code and methods to import:
from .anotherFile import aPublicMethod
+from .anotherFile import aPublicMethod
from .aSecondFile import aPublishMethod, anImportMethod
# Now, 'aPublicMethod' can be called from everyhwere in Maya
@@ -1343,13 +1343,15 @@ Create your module
# The import method
ramses.importScripts.append( anImportMethod )
+
Import the module
Finally, you just have to import your new module in the ramses_maya
module: add a simple import at the end of the ramses_maya/__init__.py
file, which should look like this:
-from .ram_cmds import cmds_classes
+from .ram_cmds import cmds_classes
from ramses import log, LogLevel
import your_new_module
+
Both the new module and the shelf will be automatically registered by the Ramses Maya Add-On when it’s loaded in Maya.
Example
A complete and working example has been made available: it is the extension made for the school Rubika Animation / Supinfocom, for the production pipeline of the graduation movies of the students.
@@ -1380,7 +1382,7 @@ Callbacks
Read the Scripting API Reference for more information.
Adding your custom callbacks
To register your callbacks, you just have to append them in the corresponding Ramses
lists:
-# We need to import the Ramses Module (API)
+# We need to import the Ramses Module (API)
from ramses import Ramses
# Now we just have to add the callbacks
ramses = Ramses.instance()
@@ -1391,11 +1393,12 @@ Adding your custom callbacks
# A status method
ramses.statusScripts.append( aStatusMethod )
+
Now, all these methods will be automatically called each time a status changes, an item is published, or an item is imported.
Detailed Example
In this example, three files are added, with the import, status, and publish methods.
The file plug-ins/your_new_module/myPublishCallbacks.py
creates the callbacks used to publish shots and assets.
-# myPublishCallbacks.py
+# myPublishCallbacks.py
import ramses as ram
@@ -1423,8 +1426,9 @@ Detailed Example
# etc.
+
The file plug-ins/your_new_module/myStatusCallbacks.py
creates the callbacks used when a status changes.
-# myStatusCallbacks.py
+# myStatusCallbacks.py
import ramses as ram
@@ -1452,8 +1456,9 @@ Detailed Example
# etc.
+
The file plug-ins/your_new_module/myImportCallbacks.py
creates the callbacks used to import items.
-# myImportCallbacks.py
+# myImportCallbacks.py
import ramses as ram
@@ -1471,15 +1476,17 @@ Detailed Example
# etc.
+
The file plug-ins/your_new_module/otherMethods.py
creates a few other methods, for example to be used in a Maya shelf.
-# otherMethods.py
+# otherMethods.py
def methodForAShelf():
doSomething()
+
Finally, we just need to import these files in the plug-ins/your_new_module/__init__.py
file of our custom module. We can register them here.
-# __init__.py
+# __init__.py
from myImportCallbacks import importAsset
from myStatusCallbacks import updateAsset, updateShot
from myPublishCallbacks import publishAsset, publishShot
@@ -1501,13 +1508,15 @@ Detailed Example
# Add the callbacks to the status list
ramses.importScripts.append( importAsset )
+
And don’t forget to import your new module in plug-ins/ramses_maya/__init__.py
:
-# plug-ins/ramses_maya/__init__.py
+# plug-ins/ramses_maya/__init__.py
from .ram_cmds import cmds_classes
from ramses import log, LogLevel
import your_new_module
+
Don’t change anything else in the file!
Now you can also use methodForAShelf()
in an existing or new shelf, which can be stored in the shelves
folder if you want it to be deployed with your extension.
diff --git a/docs/components/addons/maya-rubika/index.html b/docs/components/addons/maya-rubika/index.html
index c861d27c..0bf3b9bb 100644
--- a/docs/components/addons/maya-rubika/index.html
+++ b/docs/components/addons/maya-rubika/index.html
@@ -72,7 +72,7 @@
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/addons/maya/index.html b/docs/components/addons/maya/index.html
index 35143c9c..bc9cb462 100644
--- a/docs/components/addons/maya/index.html
+++ b/docs/components/addons/maya/index.html
@@ -72,7 +72,7 @@
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -1328,6 +1328,7 @@ Installation
PYTHONPATH+:=plug-ins
MAYA_SHELF_PATH+:=shelves
+
Do not change anything else in the file.
- In order to prevent unintended modifications to the Ramses shelf, you can set its read-only attribute:
@@ -1428,7 +1429,7 @@ 
-set_comment
or -sc
: boolean used to set a comment associated to the current version file.
-comment
or -c
: string is the comment to be associated if -sc
is True
.
-# Python
+# Python
import maya.cmds as cmds
# Save the current file
@@ -1440,6 +1441,7 @@ 
+
Comment
The Comment command saves the current scene the same way as the Save command, and adds a comment associated with the current version.
This comment is displayed with the corresponding version in all version selection dialogs, both in the add-on itself and in the Ramses Client Application, as shown below.
@@ -1454,19 +1456,21 @@
Save section for details.
-# Python
+# Python
import maya.cmds as cmds
# Save the file with a custom comment
cmds.ramSave(sc = True, comment = "A new comment!")
+
Incremental Save
The Incremental Save runs the save command and forces it to increment to a new version.
The Mel and Python corresponding command is: ramSaveVersion
with the parameter updateStatus
set to False
. Read the Update Status section for details.
-# Python
+# Python
import maya.cmds as cmds
# Incremental save
cmds.ramSaveVersion( updateStatus=False )
+
Update Status and Publish
The Update Status runs the Incremental Save command and updates the current production status of the current Asset or Shot.
A dialog is shown with a few options ot update the status, and to choose to also publish the scene, and create a preview for it. This dialog may differ depending on the use of the Ramses Client Application or not.
@@ -1498,7 +1502,7 @@
# Python
+# Python
import maya.cmds as cmds
# Shows the update status dialog
@@ -1512,6 +1516,7 @@
Publication
The publication of the scene is done in two steps:
@@ -1531,12 +1536,13 @@
The Mel and Python corresponding command is: ramPreview
.
-# Python
+# Python
import maya.cmds as cmds
# Shows the preview dialog
cmds.ramPreview()
+
Playblasts
When rendering the playblasts, Ramses does not only renders them as usual Maya playblasts: you don’t need to install Quicktime on windows anymore to export videos. Ramses automatically renders the playblasts in a very lightweight MP4 video, crafted especially for reviewing animations, with an intra-frame encoding setting which enables frame by frame playblack on every video player, with great performance.
Ramses will also automatically play the video as soon as it’s encoded using ffplay, a very efficient and lightweight video player. It may seem complicated at first as it does not have any User Interface, but it is easily controlled with a few shortcuts:
@@ -1559,12 +1565,13 @@
Ramses Tree for more information.
The Mel and Python corresponding command is: ramSaveAs
.
-# Python
+# Python
import maya.cmds as cmds
# Shows the save as dialog
cmds.ramSaveAs()
+
Template
Use the Template command to create a new template file to be used with a specific step.

@@ -1584,34 +1591,37 @@
# Python
+# Python
import maya.cmds as cmds
# Shows the publish template dialog
cmds.ramPublishTemplate()
+
Open and Import
The Open and Import command automatically finds available scenes from your projects.

It is not needed to go down all the hierarchy to select a file to open; if you just select an item and a step, Ramses will automatically open or import the corresponding latest version of the main resource. It works the same way when importing items: you don’t need to go all the way down to select the files you want to import; by selecting just the main file, Ramses will import everything available, or, if you’re using an extension of the Add-on such as the Rubika Flavor, it will pass all the files to the extension so it can automatically manage the import for you.
When importing an item, Ramses will also trigger custom import scripts registered by the pipeline tools or an extension of the Maya Add-on, such as the Rubika Flavor. This is one way of automating your workflow, by just registering scripts to be called when publishing and importing items.
The Mel and Python corresponding command is: ramOpen
.
-# Python
+# Python
import maya.cmds as cmds
# Shows the open/import dialog
cmds.ramOpen()
+
Retrieve Version
The Retrieve version command can be used to check and restore a previous version of the current scene.

The Mel and Python corresponding command is: ramRetrieveVersion
.
-# Python
+# Python
import maya.cmds as cmds
# Shows the retrieve version dialog
cmds.ramRetrieveVersion()
+
Settings
Versionning

@@ -1619,7 +1629,7 @@ Versionning
- The Auto-Increment option sets how many time can be spent before Ramses automatically increments the version of the file when saving. Use this option to be sure you can get back to an earlier version of your work even if you forget to increment the version.
- the Save hotkey option replaces the default “Save Scene”
[Ctrl + S]
hotkey from Maya by the Save command from Ramses. This is recommended to enable all production tracking features of Ramses and ensure an automatic backup of your work. Note that checking this box does not replace the File/Save
menu entry so you can still use the default Maya Save command.
- the Save as hotkey option replaces the default “Save Scene As”
[Ctrl + Shift + S]
hotkey from Maya by the Save As command from Ramses. Note that checking this box does not replace the File/Save as...
menu entry so you can still use the default Maya Save as command.
-- the Open hotkey option replaces the default “Open Scene…”
[Ctrl + O]
hotkey from Maya by the Open command from Ramses. Note that checking this box does not replace the File/Open Scene...
menu entry so you can still use the default Maya Open* command.
+- the Open hotkey option replaces the default “Open Scene…”
[Ctrl + O]
hotkey from Maya by the Open command from Ramses*. Note that checking this box does not replace the File/Open Scene...
menu entry so you can still use the default Maya Open command.
Folders

diff --git a/docs/components/client/admin/index.html b/docs/components/client/admin/index.html
index 3a057d5d..58fb4ab5 100644
--- a/docs/components/client/admin/index.html
+++ b/docs/components/client/admin/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/applications/index.html b/docs/components/client/applications/index.html
index 8be53821..be647036 100644
--- a/docs/components/client/applications/index.html
+++ b/docs/components/client/applications/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/assetgroups/index.html b/docs/components/client/assetgroups/index.html
index 85306db7..fe982da0 100644
--- a/docs/components/client/assetgroups/index.html
+++ b/docs/components/client/assetgroups/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/assets/index.html b/docs/components/client/assets/index.html
index df847bf0..0e3cf4fc 100644
--- a/docs/components/client/assets/index.html
+++ b/docs/components/client/assets/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/filetypes/index.html b/docs/components/client/filetypes/index.html
index 93de737a..aab57c81 100644
--- a/docs/components/client/filetypes/index.html
+++ b/docs/components/client/filetypes/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/index.html b/docs/components/client/index.html
index 2c858bfd..79091f8e 100644
--- a/docs/components/client/index.html
+++ b/docs/components/client/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/install/index.html b/docs/components/client/install/index.html
index 174e16d4..8f54652e 100644
--- a/docs/components/client/install/index.html
+++ b/docs/components/client/install/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/pipeline/index.html b/docs/components/client/pipeline/index.html
index ddf51540..08e63fc1 100644
--- a/docs/components/client/pipeline/index.html
+++ b/docs/components/client/pipeline/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/pipetypes/index.html b/docs/components/client/pipetypes/index.html
index 0b22388c..18d55998 100644
--- a/docs/components/client/pipetypes/index.html
+++ b/docs/components/client/pipetypes/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/production/index.html b/docs/components/client/production/index.html
index b0ac4637..5b39115a 100644
--- a/docs/components/client/production/index.html
+++ b/docs/components/client/production/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/project/index.html b/docs/components/client/project/index.html
index e1c19159..c0dfed79 100644
--- a/docs/components/client/project/index.html
+++ b/docs/components/client/project/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/projects/index.html b/docs/components/client/projects/index.html
index 4d1c188c..dfd547f7 100644
--- a/docs/components/client/projects/index.html
+++ b/docs/components/client/projects/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/schedule/index.html b/docs/components/client/schedule/index.html
index ea135b7d..7475e2de 100644
--- a/docs/components/client/schedule/index.html
+++ b/docs/components/client/schedule/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/sequences/index.html b/docs/components/client/sequences/index.html
index bf72cb55..9daf9e9d 100644
--- a/docs/components/client/sequences/index.html
+++ b/docs/components/client/sequences/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/settings/index.html b/docs/components/client/settings/index.html
index 39dc240a..9d49eae7 100644
--- a/docs/components/client/settings/index.html
+++ b/docs/components/client/settings/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/shots/index.html b/docs/components/client/shots/index.html
index fd4a51e1..4dbca034 100644
--- a/docs/components/client/shots/index.html
+++ b/docs/components/client/shots/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/states/index.html b/docs/components/client/states/index.html
index 8a8af8d3..3731b391 100644
--- a/docs/components/client/states/index.html
+++ b/docs/components/client/states/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/steps/index.html b/docs/components/client/steps/index.html
index 440c1771..21677c8d 100644
--- a/docs/components/client/steps/index.html
+++ b/docs/components/client/steps/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/templateassetgroups/index.html b/docs/components/client/templateassetgroups/index.html
index 20537c57..08298923 100644
--- a/docs/components/client/templateassetgroups/index.html
+++ b/docs/components/client/templateassetgroups/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/templatesteps/index.html b/docs/components/client/templatesteps/index.html
index 20c73a31..5c142b6a 100644
--- a/docs/components/client/templatesteps/index.html
+++ b/docs/components/client/templatesteps/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/client/users/index.html b/docs/components/client/users/index.html
index ed91b5fe..bbf1b355 100644
--- a/docs/components/client/users/index.html
+++ b/docs/components/client/users/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/files/index.html b/docs/components/files/index.html
index 6b1b57ec..4a410499 100644
--- a/docs/components/files/index.html
+++ b/docs/components/files/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/files/naming/index.html b/docs/components/files/naming/index.html
index c314add8..8bd50c11 100644
--- a/docs/components/files/naming/index.html
+++ b/docs/components/files/naming/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/files/tree/index.html b/docs/components/files/tree/index.html
index 5b8bcc88..e726fafe 100644
--- a/docs/components/files/tree/index.html
+++ b/docs/components/files/tree/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -1318,7 +1318,7 @@ The Main Ramses Folder
The easiest way to use Ramses to manage all your projects is to define a root folder for all Ramses projects, where Ramses will create a subfolder for each project.
This Ramses folder is also used to store user specific files, some configuration files, etc.
Nevertheless, you can always choose another folder to store a specific project, outside of the Ramses Folder.
-┌ Ramses Folder
+┌ Ramses Folder
│
├─── Config # Configuration files
│
@@ -1334,13 +1334,14 @@ The Main Ramses Folder
│ └─── Config
└─── ...
+
Hint
When using the Ramses Client, user and project folders can be located anywhere outside the Ramses Folder, it is not mandatory to keep them grouped together there.
The Project Folder
These are the contents of a Project folder:
-┌ PROJECTID # Root
+┌ PROJECTID # Root
├─── 00-ADMIN # Project administration
├─── 01-PRE-PROD # Pre-production steps common files
├─── 02-PROD # Production steps common files
@@ -1349,10 +1350,11 @@ The Project Folder
├─── 05-SHOTS # All the Shots
└─── 06-EXPORT # Media files
+
The root folder of a project only contains other folders and no files.
The subfolders in the root folder are numbered to help sorting them and quickly find them.
Here is an example of a typical project tree, without showing the details in the working directories nor any file.
-┌ PROJECTID # Root
+┌ PROJECTID # Root
│
├─── 00-ADMIN
│
@@ -1391,10 +1393,11 @@ The Project Folder
│
└─── 06-EXPORT
+
A working folder
A folder containing working files is always organised the same way.
Here is an example for the modelling step of the asset called Tristan.
-┌ PROJECTID_A_TRISTAN_MOD # The working folder, subfolder of the asset folder.
+┌ PROJECTID_A_TRISTAN_MOD # The working folder, subfolder of the asset folder.
│
├─── PROJECTID_A_TRISTAN_MOD.blend # The main file for modelling Tristan (on Blender)
├─── PROJECTID_A_TRISTAN_MOD_Sculpt.blend # Another resource
@@ -1416,6 +1419,7 @@ A working folder
├─── PROJECTID_A_TRISTAN_MOD.jpg # A file for previewing the modelling
└─── PROJECTID_A_TRISTAN_MOD.mp4 # A file for previewing the modelling
+
The _versions subfolder contains the versionning and history of the work.
The _published subfolder contains the published and exported files to be used by other steps.
The _preview subfolder contains the files for previewing the current work, like videos or images. These files may be used by Ramses to generate thumbnails. Ramses is also able to list, preview, and play these files (if their format is standard and supported).
diff --git a/docs/components/index.html b/docs/components/index.html
index 82f7e35e..7312720d 100644
--- a/docs/components/index.html
+++ b/docs/components/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/server/admin/index.html b/docs/components/server/admin/index.html
index f9944494..7b44eef1 100644
--- a/docs/components/server/admin/index.html
+++ b/docs/components/server/admin/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/server/index.html b/docs/components/server/index.html
index f3e31f76..c15e981f 100644
--- a/docs/components/server/index.html
+++ b/docs/components/server/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/components/server/install/index.html b/docs/components/server/install/index.html
index 34b74c9e..136f40cf 100644
--- a/docs/components/server/install/index.html
+++ b/docs/components/server/install/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -1320,7 +1320,7 @@ Standard Installation
The default user for Ramses is Admin
with the password password
. You should start by changing this name and password using the Ramses Client Application.
config.php
The config.php
file you have to edit looks like that:
- // ==== SQL SETTINGS ====
+ // ==== SQL SETTINGS ====
// Host URL
$sqlHost = "localhost";
@@ -1347,6 +1347,7 @@ config.php
// 5 hours by default( 18000 )
$cookieTimeout = 18000;
+
Hint
You will need your database information to configure the Ramses Server to use it. If you don’t know how to do that or if you’ve just installed your own web server following our instructions, read the next section first.
diff --git a/docs/components/server/web-server/index.html b/docs/components/server/web-server/index.html
index 695c4079..d2e67503 100644
--- a/docs/components/server/web-server/index.html
+++ b/docs/components/server/web-server/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -1345,51 +1345,62 @@ Debian, Ubuntu and other deb
If you have enough trust in us, you can just copy the bash script we provide at the end of the procedure and run that.
Before installing any new software on your system, it’s a good idea to update already installed packages:
-sudo apt update
+sudo apt update
sudo apt upgrade
+
Install Apache, the web server
-sudo apt install apache2
+sudo apt install apache2
+
Test Apache by going to http://localhost or http://127.0.0.1
Server files are located in /var/www/
and configurations files are in /etc/apache2/
(he main file is apache2.conf
)
It suppresses some warning info to add a server name in the configuration file. Edit /etc/apache2/sites-available/000-default.conf
as root) to uncomment/add the line ServerName localhost
.
Starting and stopping Apache (it automatically starts during system boot by default)
-# stop
+# stop
sudo apachectl stop
# start
sudo apachectl start
+
Install PHP
-sudo apt install php php-mysql -libapache2-mod-php php-dev
+sudo apt install php php-mysql -libapache2-mod-php php-dev
+
Check if PHP is working
-php -version
+php -version
+
You may need to enable the Apache php module
-sudo a2dismod mpm_event && sudo a2enmod mpm_prefork && sudo a2enmod php7.4
+sudo a2dismod mpm_event && sudo a2enmod mpm_prefork && sudo a2enmod php7.4
# change the php version if not 7.4
+
Test PHP by creating a /var/www/html/phptest.php
file containing <?php phpinfo(); ?>
, and navigate to http://localhost/phptest.php.
You can create this file quickly with the command line too:
-echo "<?php phpinfo() ?>" | sudo tee -a /var/www/html/phptest.php > /dev/null
+echo "<?php phpinfo() ?>" | sudo tee -a /var/www/html/phptest.php > /dev/null
+
Install MySQL
-sudo apt install mysql-server
+sudo apt install mysql-server
+
You will need to set the root password; first, connect to MySQL:
-sudo mysql -u root -p
+sudo mysql -u root -p
# blank password
+
Set password:
-ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'P@ssw0rd';
+ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'P@ssw0rd';
+
Keep this password somewhere, it’s the one you will need to manage the database.
Exit MySQL with exit
.
Install phpMyAdmin
phpMyAdmin is a nice tool to manage your MySQL databases that will help you prepare the Ramses Server.
-sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
+sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
+
You have a few options to choose when prompted by the installer.
- For the server selection, choose
apache2
@@ -1407,16 +1418,18 @@ Install phpMyAdmin
- You will then be asked to choose and confirm a MySQL application password for phpMyAdmin.
Enable the needed PHP extension:
-sudo phpenmod mbstring
+sudo phpenmod mbstring
+
Restart Apache:
-sudo systemctl restart apache2
+sudo systemctl restart apache2
+
phpMyAdmin is available at http://localhost/phpmyadmin
Installation script
Here is a bash script to automate all of these. Copy it into a text file with the .sh
extension, make it executable then run it from a terminal with ./theScipt.sh
.
Be careful as the included installation of phpMyAdmin will prompt a few questions, read just above to be sure what you need to answer.
-#!/bin/bash
+#!/bin/bash
sudo apt update
sudo apt upgrade
diff --git a/docs/credits/index.html b/docs/credits/index.html
index 6c766735..e503e474 100644
--- a/docs/credits/index.html
+++ b/docs/credits/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
diff --git a/docs/dev/add-ons-reference/enum/index.html b/docs/dev/add-ons-reference/enum/index.html
index 598bc793..b08c3406 100644
--- a/docs/dev/add-ons-reference/enum/index.html
+++ b/docs/dev/add-ons-reference/enum/index.html
@@ -72,7 +72,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -796,7 +796,7 @@
-
- v0.1.1-Alpha
+ v0.1.2-Alpha
@@ -1628,7 +1628,7 @@ UserRole
Examples
-# Python
+# Python
from ramses import RamItem, ItemType
@@ -1641,7 +1641,8 @@ Examples
if anItem.itemType() == ItemType.SHOT:
doSomething()
-// ExtendScript
+
+// ExtendScript
#include ramses.jsxinc
@@ -1656,6 +1657,7 @@ Examples
doSomething();
}
+

Enumerated Values
Enumerated values (a.k.a. Constants) are predefined sets of values to be used in specific methods. Their name is in CAPITAL_SNAKE_CASE, and they’re grouped together by type (for exemple color.RED
, or shape.RECTANGLE
). The value itself can be of any type (array, string, number…).
-# Python
+# Python
# Enumerated values are public static attributes of a containing class. They're declared like this:
class Group():
@@ -1310,7 +1310,8 @@ Enumerated Values
GREEN = [0,255,0]
BLUE = [0,0,255]
-// ExtendScript
+
+// ExtendScript
// Enumerated values are attributes in simple objects. They're declared like this:
var Group = {
@@ -1326,6 +1327,7 @@ Enumerated Values
BLUE: [0,0,255]
};
+
Accessing the data
In All “RamClasses”, most of the data is retrieved with methods (instead of accessing it directly from an attribute). This allows the API to get the data from three different locations:
@@ -1353,7 +1355,7 @@ Accessing the data
Here are example concepts in Python and ExtendScript, like what’s done in the provided implementations of the Ramses Add-ons API.
-# Python
+# Python
class RamClass( object ):
@@ -1400,7 +1402,8 @@ Accessing the data
return self.__someMutableData
-// ExtendScript
+
+// ExtendScript
function RamClass( someImmutableData='', someMutableData='' )
{
@@ -1462,6 +1465,7 @@ Accessing the data
}
+
