Beispiel #1
0
        internal World(Plugin plugin, string fileName)
        {
            Plugin = plugin;

            Scene    = Plugin.Scene;
            Config   = Plugin.Config;
            Executor = Plugin.PythonExecutor;

            ShotManager = new ShotGroupManager(this);
            PmxModel    = new CurtainFireModel(this);
            KeyFrames   = new CurtainFireMotion(this);

            ExportFileName = fileName;
            ModelName      = ExportFileName;
        }
Beispiel #2
0
        public void CompressMorph()
        {
            CurtainFireMotion vmdMotion = World.VmdMotion;

            var typeMorphDict = new MultiDictionary <byte, PmxMorphData>();

            foreach (var morph in vmdMotion.MorphDict.Keys)
            {
                typeMorphDict.Add(morph.Type, morph);
            }

            foreach (var morphList in typeMorphDict.Values)
            {
                Compress(morphList, vmdMotion.MorphDict);
            }
        }