|02 February 2011||#16|
Join Date: Oct 2003
Listing objects under the mouse (more than one)
Unfortunately, not easily so. This is not so much a limitation of QMenu, but rather of the Softimage SDK, which exposes simply no direct means of acquiring the objects under the mouse (selected or not). Also, there is no raycast function which could be used to test "manually". There might be the option of writing custom display callbacks for the viewports, but that's a bit drastic and beyond my current set of skills. If any one here knows how to do this, or can even send me a related piece of code on how to pull this off to reduce my R&D time I might look into it. But honestly, this is something Autodesk should provide out of the box (just like fully customizable Menus to begin with).
|02 February 2011||#18|
Join Date: Apr 2002
I have just released the following tools for Softimage :
XSIGradient : gradient background for the viewport
XSIRuleOfThirds : draws a 'Rule of Thirds' grid over a camera
XSIEnvelope : A set of tools to help speed up the enveloping process
XSISelectionSets : An easy way to store and apply selection sets
All of which can be downloaded from www.softmonkey.org
As a side note, Stefan, i have recently started dabling in CustomDisplayCallback code, i would be happy to send you the source code for the above plugins that use it as a reference point.
Having said that, off the top of my head i am not sure how to go about testing the area of the object in relation to the mouse position, but it certainly sounds like an interesting task!
|02 February 2011||#19|
Join Date: Oct 2003
Thanks for releasing those and also for providing decent help files and polishing - not always a given
As for display callbacks: I thought you'd be needing something related for the gradient viewport background when I saw your post at the mailing list.
Somehow Softimage must already do some testing for objects under the mouse, otherwise the default right-click menu would not be case sensitive (it looks different when clicking over, say, an empty area on the screen vs. over an object). So it must be possible, unless it's one of those black boxes again.
I really don't know what functionality there is in the graphics sequencer and related departments that could be used, or if it's even possible to make e.g. arbitrary OpenGL calls.
I remember, years ago, there was an example on xsiblog of such functionality by a guy who had programmed a tool to rapidly change the posture of a character by just clicking on the object/body part in the viewport and dragging the mouse.
Edit: I just found it ->
To my knowledge he never released it anywhere, but maybe he can be contacted and kindly asked for the source code? He also describes the methodology he used to get it to work (seems he used OpenGL calls to get the object under the mouse, so it must be possible), which sounds plausible. What I'd need to get this going is, ideally, a plugin, that exposes either a command I can call to query for objects under the mouse cursor, or even better, a plugin which stores names of, or references to, objects under the mouse in it's UserData attribute (which it constantly updates, or at least updates on key_pressed, in case this is not a performance bottle neck), from where I can fetch it without even using a command (thus eliminating the possibility of said command to appear in the Edit menu under certain conditions). Any help highly appreciated.
Last edited by Stefan.k : 02 February 2011 at 05:10 PM.
|03 March 2011||#24|
Join Date: Oct 2003
Yes Sir! The new tools SDK offers lot of additional functionality that could also proof useful for QMenu, maybe it will even invocation of QMenus through the mouse if QMenu is declared as a tool. We'll see. I'm not among the beta testers, unfortunately. Has ne1 here tested Qmenu in 2012 beta?
|10 October 2011||#27|
Join Date: Feb 2006
mSymm / mCombine
I'd like to share two scripts I've developed a few days ago.
They are very basic and simple but I use them a lot.
This script align the points close to 0, to 0. (-0.01 ~ 0.01 by default, you can easily edit it).
Deletes the left side of the object.
If there is no left side, it symmetrizes the polygon with Weld Distance : 0.001. So it works like some kind of Toggle Symmetry.
If you press shift, alt or ctrl when you click, it symmetrizes with local reference
Merges the selected objects, rename the merged object with the first selected object's name, and move it under the first selected object's parent. So it kinda merges the add-selected objects into the first selected one.
It uses merge with 0.001 of tolerance, Copy Animation and Copy Materials.
I packed this as an addon so it would be easier to install.
|09 September 2012||#28|
Matthew L Stoehr
Professor & Dept. Chair
American River College, Art New Media
Join Date: May 2003
Here's an old set of tools in .xsiaddon format (just drag and drop into any empty viewport)., that I've either written or collected, and I use regularly when modeling in SI. I'm a fan of toggling the subd and polygon mode as I model, and I also like all my polygons to have zero discontinuity angle (light and dark are easier to see on faceted form), so there a tool there called Quicklevel. I mapped Quicklevel to the tilde key (kinda like the tab key in Lightwave or the toggle between 1 and 3 in Maya).
Tools in this addon include:
1. Quicklevel - toggles subd (discontinuity of 89.5) and polygon (discontinuity of 0) I also made this tool to help control the students render time at the end of the semester. This prevented them from increasing the render subdivision level 4.
2. Stats - toggle stats
3. Xzero - move points or edges to global X,0 (for character modeling)
4. CloneOnX - clone half a mesh on X (for sym modeling)
5. FixSym - deletes and recreates a sym map (good for corrected meshes, final touches)
6. FlattenNormal - self explanatory
7. FlattenX - self explanatory
8. FlattenY - self explanatory
9. FlattenZ - self explanatory
10. Solidify (Helgee Mathee's original thickening tool)
11. ExtractIslands - self explanatory (A script pulled from Softimage Wiki)
|10 October 2013||#29|
San Antonio, USA
Join Date: Apr 2008
Styling, Animation, and Simulation of Bird Feathers for Softimage.
My various work and stuff
|01 January 2014||#30|
Join Date: May 2011
function Create_Multiple_Cluster_Centers_e.xecute( )
// ERROR : 'Create_Multiple_Cluster_Centers_e'
HI~ I use this Jscript
it had a problem how to solve?
|reply share thread|