Skip to content

Commit

Permalink
update rigging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mchaptel committed Jun 18, 2020
1 parent 2b9a365 commit 3a9a62e
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tbpackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@
"name": "oH Rigging tools",
"version": "1.0.0",
"compatibility": "Harmony Premium 15",
"description": "<p><u></u><br></p>\n\n<p><u>Clean Unused Palettes</u><br>\nFinds and removes all unnecessary palettes files from the filesystem. Doesn't support Element Palettes yet!</p>",
"description": "<b>OpenHarmony Rigging Tools</b>\n<p>Those scripts require the <b>openHarmony</b> lib to work. Install it first for the scripts to work.</p>\n<p><u>Add Centered Weighted Peg</u><br>Adds a peg with a pivot at the center of the selected drawing.</p>\n\n<p><u>Place Pivot with Click</u><br>Place the pivot with a simple click.</p>\n\n<p><u>Clean Unused Palettes</u><br>\nFinds and removes all unnecessary palettes files from the filesystem. Doesn't support Element Palettes yet!</p>\n\n<p><u>Create Backdrop on Selection</u><br>Set up backdrops easily on the selection with this script.</p>\n",
"repository": "https://github.com/cfourney/OpenHarmony/",
"isPackage": false,
"files": [
"tools/OpenHarmony_basic/openHarmony_rigging_tools.js"
"tools/OpenHarmony_basic/openHarmony_rigging_tools.js",
"tools/OpenHarmony_basic/openHarmony_basic_backdropPicker.ui"
],
"keywords": [
"openHarmony",
"palettes"
],
"author": "Chris F",
"author": "OpenHarmony",
"license": "MPL-v2.0",
"website": "https://github.com/cfourney/OpenHarmony/",
"localFiles": ""
Expand Down
147 changes: 147 additions & 0 deletions tools/OpenHarmony_basic/openHarmony_basic_backdropPicker.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>471</width>
<height>223</height>
</rect>
</property>
<property name="windowTitle">
<string>Backdrop Details</string>
</property>
<property name="modal">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="nameBox">
<item>
<widget class="QLabel" name="backdropNameLabel">
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="backdropName"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="textBox">
<item>
<widget class="QLabel" name="backdropTextLabel">
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Text</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="backdropText"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="colorBox">
<item>
<widget class="QLabel" name="backdropColorLabel">
<property name="minimumSize">
<size>
<width>74</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Color</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="backdropColor">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="backdropColorButton">
<property name="text">
<string>Change Color</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
2 changes: 1 addition & 1 deletion tools/OpenHarmony_basic/openHarmony_rigging_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function oh_rigging_addBackdropToSelected(){
scene.beginUndoRedoAccum( "oh_rigging_addBackdropToSelected" );

//The path to the UI should be here:
var oh_colorPicker = specialFolders.userScripts + "/openHarmony_basic/" + "openHarmony_basic_backdropPicker.ui";
var oh_colorPicker = specialFolders.userScripts + "/openHarmony_basic_backdropPicker.ui";
var ui_file = new $.oFile( oh_colorPicker );

if( !ui_file.exists ){
Expand Down

0 comments on commit 3a9a62e

Please sign in to comment.