I have been searching thru the documents and tutorials looking for api / extension examples to implement a GUI like the screenshoot above.
Is there any existing api to implement property editor? or do i need to implement GUI from scratch?
No, there's not. You can implement an own GUI via webviews, but that's about it.
Related
Can someone explain normally, how i can create directus interface extension? I readed docs, but i didn't understand anything from there. It just says that we can use vue js, but not a word about the implementation itself. I've been sitting for 4 hours and I can't find a normal source. The question is: Сan someone suggest what ш need to learn or read in order to be able to write interface extensions?
Tried:
https://docs.directus.io/extensions/interfaces.html
Dimitrov Adrian github repos..
I would suggest reading all of the extensions documentation from the start.
The page I've linked explains how to begin creating an extension, the page you have linked is a specific type of extension.
https://docs.directus.io/extensions/creating-extensions.html
I am looking to use Cytoscape.js to build an interactive web based graph builder. Is it possible to handle a drop event to create a new node or link? If not, what options, if any exist for interactive graph building using the API? It looks like I may be able to use the click event or the radial menu plugin to do something like this but I'm interested in other options. Are there any good examples out there of doing something like this?
Cytoscape.js has an extension API that can be used to create reusable components like you suggest. There are several existing extensions which you can use in addition to the documentation as examples.
It seems someone has made a similar extension, but it’s straightfoward to create your own using any of the documented API functions.
We’re working to streamline the extension writing and submission process so it’s easier to share your extensions with others in v2.3.
Do I need to write my own find functionality to allow users to find text content on a page, or is there a way that node-webkit can expose pre-existing webkit find functionality?
Currently you can do this in your app with some library like this: http://www.seabreezecomputers.com/tips/find.htm
In current node-webkit there is no native UI to support this feature, but we'll see it in future if it has advantage.
I am trying to create a plugin in Maya API that will basically have a menu inside of Maya and I will be able to load in a different character head depending on which button was pressed.
This is my first time with the Maya API so I am quite unfamiliar.
Any ideas on how to import models like this using the API?
Thanks so much!
Tyler
I recommend using MEL as a start, instead of the Maya API.
MEL Commands you should look at are file to import files into your scene (e.g. heads), and probably all UI related commands to create a simple window.
As Byron mentioned, MEL or Python scripting would be a (dramatically) simpler solution than using the API. There is one key difference between what you will be able to accomplish using the API compared to a script:
Using the OpenMayaUI modules, you can insert your "head selection UI" directly into the existing menus in Maya.
Using a script, you are restricted to a floating ui window that can be docked in certain places in Maya's UI (This is not technically true, however it is far easier to utilize scripts in this manner rather than trying to force your script into the UI). Furthermore, creating a button for the script to be launched in Maya requires users of the script to take an extra step. It cannot be "installed" into Maya for them (Again, not technically true, but most users prefer shelf buttons as opposed to menus in the UI). See Autodesk Documentation: Creating a shelf button for a script for more information on that.
I see no reason that a script will not suffice for a simple head swap action, but if you wish to use this as an exercise in learning the API then I can give you a few pointers:
First of all, all non-API Maya commands can be accessed in both a script and using the API for a plugin. Since this "Plugin" does not require any API modules other than those needed for adding the Plugin directly to the UI, you can mockup the entire functionality using a script.
In other words, you can use "import maya.cmds as cmds" in both a script and a plugin, and the actual functionality you desire is available entirely using that module. Therefore, I would advise you make a script that performs the actions you want first, then work on converting that script into a plugin. Creating a command plugin that achieves this result should be fairly simple once you already have a script that works. Then, all you need to do is use the UI API modules to add your menu to the existing Maya UI.
Once your script is complete, here is a link to Autodesk's tutorial on creating a command plugin: Autodesk Python API Documentation
And this cgsociety discussion contains a lot of useful tips of getting your UI inside of Maya's (the discussion is about c++, but the same concepts apply to python plugins): C++ Add Menu to Maya's Main Menu Bar
I've taken to assuming this will all be done using Python, since scripts and plugins can both be programmed in that language. It's also what I use- I've never delved into the c++ API. Anyways, I hope this helps! Good luck :)
I have to add my custom Dictionary to fckeditor/ tinymce editor,so that my brand name,material name shouldn't be misspelled in editor when spellchecking happens.Can anyone suggest me to add custom dictionary to my editors.
Thanks in advance
There are a few TinyMCE spell check options that can use custom dictionaries. The free solution is the PSpell/ASpell plugin that uses PSpell/ASpell on your server.
http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
A non-free solutions is JSpell, which allows you to alter the dictionary from the editor.
http://www.jspell.com/ajax-spell-checker.html
Another alternative, is to use tinyMCE+LanguageTool (https://www.languagetool.org/)
LanguageTool its more like a spell checking engine, where you can even define your own grammatical rules, etc.
Its really powerful and free. :)
Its offered also an open source spellchecker plugin for tinyMCE. The custom dictionary and other custom things can also be setup when hosting the service dictionary in your own server.
The actual spellchecking plugin:
https://github.com/automattic/atd-tinymce
How to integrate
General development overview
Main wiki
Interesting info about related custom dictionary files