
Please use this thread to suggest plugins that could be added to the si-community resource section (formerly know as rray.de/xsi)
May 4 th, 2017 (Thur)
Floating camera view-like.
When I was working, I wanted it intensely, and I wrote it.
JScript
--------------------------------------------------------------------------------------------------------------------------------------Code: Select all
// Floating camera view-like. // Please select the camera and execute it. var olayout = Application.Desktop.ActiveLayout; var oView = olayout.CreateView ("Object View", selection (0) .FullName); oView.SetAttributeValue ("camera", selection (0) .FullName); oView.SetAttributeValue ("displayall", "true"); oView.SetAttributeValue ("autoalign", "false"); oView.SetAttributeValue ("autoframe", "false"); oView.SetAttributeValue ("compensate", "false"); oView.SetAttributeValue ("holdselection", "false"); oView.SetAttributeValue ("localview", "false"); oView.SetAttributeValue ("lockstatus", "true"); oView.SetAttributeValue ("modifycameras", "true"); oView.SetAttributeValue ("rotatecomp", "false"); oView.SetAttributeValue ("scalecomp", "false"); oView.SetAttributeValue ("translatecomp", "false");
That is it.
Another one that I want to put out in camera view, floating .
What I am doing is getting one object view down and just fiddling with various settings. Until now I've done it all by hand from the point of viewing the object view, but since I was troubled, I just wrote it in a script.
It seems like a simple copy of camera view, so I think that it can be used just like ABCD view normally. It's floating so you can put it anywhere on the monitor, and the point is that the size is free too .
Recently, it is impossible to operate anything in the traditional quadrant screen. It is too small. So it's common to work in full screen, or about 2 divisions in one view, but the last output camera is not easy to see. Especially when you are trying to produce an image with a very long landscape or a huge aspect, you will want more freedom in the placement and size of the camera view. That's why I try to make it a floating window.
Mr. Cinny who was at Softimage company in the past gave out this plugin. It's called Viewport Controls. Different. It's very convenient but there are too many menu items and it gets enlarged, there is a memory that seems to uninstall it as it is already ... It's a story ten years ago.
By the way, at Maya, there are functions like this script from the beginning. There is Tear Off Copy on the panel, so you can detach anything in camera view and make it floating.
By the way, I've recently forgotten how to write XSI scripts intensely, and I have difficulty with it. I wrote this in 2 minutes, but it seems like tears come out.
The speed of writing Python and MEL until Maya has gone up, but it is still mota motto.
If you feel something inconvenient, Maya wants to do scribbling scripts and training applications for me. Just as I have done with XSI. The room for customization seems to be much bigger for Maya, so the undeveloped area is vast. It seems that you can also remodel Magician.
But, for example, like mouse drag operability and selection of things, Maya is like Maya, so no matter how you customize it, that does not change. Mum, please, Mr. Maya.
And what I'm writing about this script,
I still have to be active.
It is currently being broadcasted by XSI Mr. wife.
Hailheil XSI.
Go tooo Hell Maya.
Thursday, June 22, 2017
Select multiple objects and execute.
The last object chosen is the parent.
It is Maya's style.
JScript
-------------------------------------------------------------------- -------------------------------------------------------------------------- ------Code: Select all
// Mr. Maya -sama parent of tears. var o Sels = Filter X 3 D (Selection); var oNewParent = oSels (oSels.count - 1); For (var i = 0; i <oSels.count - 1; i ++) ParentObj (oNewParent, oSels (i)); function FilterX3D (in_Objs) { var oCol = XSIFactory.CreateObject ('XSI.Collection'); for (var i = 0; i <in_Objs.count; i ++) { if (in_Objs (i) .IsClassOf (siX3DObjectID)) oCol.Add (in_Objs (i)); } return oCol; }
Opportunity Schematic.
In the schematic view, I often do a node folded state, but it is troublesome when developing it. Especially if you get data from people.
There is a shortcut called N key , but it is assumed that the node is selected first before pressing the key.
Folded nodes scattered here and there. Because I am further folded in the folded lower layer.
It is a story that I do not want to choose even if I know how to select where I'm folding where I am folded .
For example, it seems to be cool and looks like this ......,
With such a tree, if the places are folded here, you surely will be out of hand. I shoot all the opponents and gora and monitor from the window.
It seems that it was the situation that .... I also have a lot. It is quite common.
JScript
------------------------------------------------------------------------------------------------Code: Select all
// Opportunity Schematic ver 2 var oViews = Desktop.ActiveLayout.Views; // Search dock view -> search floating view -> make it otherwise > var o FuckinSchematicView = oViews.Filter ("View Manager") (0). Views.Filter ("Schematic") (0); var oSchematicView = oViews.Filter( "View Manager" )(0).Views.Filter( "Schematic" )(0); if ( !oSchematicView ) { oSchematicView = oViews.Filter( "Schematic" )(0); if ( !oSchematicView ) var oSchematicView = Desktop.ActiveLayout.CreateView( "Schematic", "Opportunity Schematic" ); } var oNodes = oSchematicView.SelectedNodes; // selected node if ( oNodes.count == 0 ) oNodes = oSchematicView.Nodes; // all nodes for ( var i=0; i<oNodes.count; i++ ) ExpandNode( oNodes(i) ); function ExpandNode(oRecursiveNode){ // It seems to be recursive oRecursiveNode.Expanded = true; // Opportunity for ( var i=0; i<oRecursiveNode.Nodes.count; i++ ) ExpandNode( oRecursiveNode.Nodes(i) ); }
If you do not select anything, all the schematic nodes in the scene will be expanded.
In other words, nodes in the collapsed state disappear.
If you choose something, everything below the hierarchy of the selected object will be expanded. That's it. that's all.
Hidden content: [ Show ]
emTools compound list for searchHidden content: [ Show ]