quickShutter

Plugins linking to this thread: (hide)

QuickShatterAuthor: Konstantin Kovalenko
aka QuickShutter. An easy to use shatter script working on any object, polygon or polygon islands selection. Includes unmerge.pys and unmergeParent.pys, two scripts which convert the polygon islands that were created to individual objects.

local backup: quickShatterAll.pys Unmerge.pys UnmergeParent.pys
sortSequence Author: Konstantin Kovalenko
A file automation script that works in a given windows folder. It detects any existing sequence of files and for each one, creates a folder with the same base name and then copies the files of the sequence into that folder.

local backup: sortSequence.pys

Post Reply
eistan
Posts: 17
Joined: 08 Oct 2012, 06:19
Skype: kovblood

quickShutter

Post by eistan » 18 Jun 2015, 20:25

Hi everyone, here is my new script quickShutter.
How it work, see video:


and bonus:
quickUnmerge - unmerging all merge objects and select them, and delete source object
quickUnmergeParent - unmerging all merge objects and select them, and move all object into source object (if you need to keep animation!)


sortSequence - this scripts work with your windows folder, where you have many image sequence and you need to move image sequence to folder with the same name respectively (but you need change 'e:\\test\\' to your path and Run)


download
https://drive.google.com/folderview?id= ... sp=sharing

User avatar
wireframex
Posts: 399
Joined: 08 Jun 2009, 23:02
Location: France

Re: quickShutter

Post by wireframex » 18 Jun 2015, 22:16

Thanks a lot for sharing this :) :-bd
Phil
"without mastery, power is nothing" - Softimage Addict User
CPU 3990x 128 Threads / 2 x 3090 RTX - 24 Go / 96 Go memory

User avatar
Draise
Posts: 891
Joined: 09 Oct 2012, 20:48
Skype: ondraise
Location: Colombia

Re: quickShutter

Post by Draise » 21 Jun 2015, 01:28

Wow nice! The shatter script you have is exactly what I was thinking to.. search for and use for a potential client. Beautiful. Thanks!

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 15:13

Re: quickShutter

Post by caledonian_tartan » 22 Jun 2015, 09:24

this looks great!
unfortunately i get an empty mesh called "meshshutter01" when using quickShatterAll.pys.
using softimage 2015
SI 2015 @ WIN7-64

eistan
Posts: 17
Joined: 08 Oct 2012, 06:19
Skype: kovblood

Re: quickShutter

Post by eistan » 22 Jun 2015, 10:58

thanx guys

caledonian_tartan, sorry i dont have 2015 to test it, but i think it should work, im work in 2013
so, you select an object, and after you click Run in script editor, your object is gone??
can you screenshot whats the error and log write script editor

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 15:13

Re: quickShutter

Post by caledonian_tartan » 22 Jun 2015, 11:51

i basically just put a cube in the scene and run the script.
at the end, just a empty polymesh is left. no errors.

Code: Select all

#create a cube and subdivide a little bit

Application.CreatePrim("Cube", "MeshSurface", "", "")
Application.SetValue("cube.polymsh.geom.subdivu", 24, "")
Application.SetValue("cube.polymsh.geom.subdivv", 24, "")
Application.SetValue("cube.polymsh.geom.subdivbase", 24, "")
Application.FreezeObj("", "", "")

#running the script

Application.GetPrim("PointCloud", "", "", "")
Application.SetValue("pointcloud.Name", "pcshutter01", "")
Application.GetPrim("EmptyPolygonMesh", "", "", "")
Application.SetValue("polymsh.Name", "meshshutter01", "")
Application.ApplyOp("ICETree", "pcshutter01", "siNode", "siPersistentOperation", "", 0)
Application.AddICECompoundNode("Build Slice Planes", "pcshutter01.pointcloud.ICETree")
Application.ConnectICENodes("pcshutter01.pointcloud.ICETree.port1", "pcshutter01.pointcloud.ICETree.Build_Slice_Planes.execute")
Application.SetValue("pcshutter01.pointcloud.ICETree.Build_Slice_Planes.Reference1", "cube", "")
Application.ApplyOp("ICETree", "meshshutter01", "siNode", "siPersistentOperation", "", 0)
Application.AddICECompoundNode("Create Basic Shatter from Point Cloud", "meshshutter01.polymsh.ICETree")
Application.ConnectICENodes("meshshutter01.polymsh.ICETree.port1", "meshshutter01.polymsh.ICETree.Create_Basic_Shatter_from_Point_Cloud.Execute")
Application.AddICENode("GetDataNode", "meshshutter01.polymsh.ICETree")
Application.SetValue("meshshutter01.polymsh.ICETree.SceneReferenceNode.reference", "pcshutter01", "")
Application.ConnectICENodes("meshshutter01.polymsh.ICETree.Create_Basic_Shatter_from_Point_Cloud.Point_Cloud_Name", "meshshutter01.polymsh.ICETree.SceneReferenceNode.outname")
Application.AddICENode("GetDataNode", "meshshutter01.polymsh.ICETree")
Application.SetValue("meshshutter01.polymsh.ICETree.SceneReferenceNode[1].reference", "cube", "")
Application.ConnectICENodes("meshshutter01.polymsh.ICETree.Create_Basic_Shatter_from_Point_Cloud.Polygon_Mesh_Name", "meshshutter01.polymsh.ICETree.SceneReferenceNode[1].outname")
Application.SetValue("pcshutter01.pointcloud.ICETree.Build_Slice_Planes.Seed", 679, "")
Application.FreezeModeling("meshshutter01", "", "siUnspecified")
Application.DeleteObj("cube")
Application.DeleteObj("pcshutter01")
SI 2015 @ WIN7-64

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 23:38
Location: St. Thomas, Ontario
Contact:

Re: quickShutter

Post by Daniel Brassard » 22 Jun 2015, 16:35

Hi Caledonian_tartan

In your code, the line defining "meshshutter01" should it not be?

Code: Select all

Application.GetPrim("EmptyPolygonMesh", "", "", "")
Application.SetValue("EmptyPolygonMesh.Name", "meshshutter01", "")
$ifndef "Softimage"
set "Softimage" "true"
$endif

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 15:13

Re: quickShutter

Post by caledonian_tartan » 22 Jun 2015, 16:54

unfortunately not. polymsh is fine.

if i prevent object deletion and freeze and change this: (set integer value to one)
Application.SetValue("meshshutter01.polymsh.ICETree.Create_Basic_Shatter_from_Point_Cloud.Init_PolyMeshTopologyArray.IntegerNode.value", 1, "")
i can see one chunk...
but building an array there doesn't help
SI 2015 @ WIN7-64

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 23:38
Location: St. Thomas, Ontario
Contact:

Re: quickShutter

Post by Daniel Brassard » 22 Jun 2015, 17:10

What does your ICETree on the pointcloud and EmptyPolygonMesh look like? Comment the DeleteObj line in the script and check Softimage scene structure and both IceTree.

The script is basically an automation of this on whatever polygon mesh is selected at the time

http://download.autodesk.com/global/doc ... 1-1033.htm
$ifndef "Softimage"
set "Softimage" "true"
$endif

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests