mcjPushPullFacet

Note: if you downloaded the first version of this script, you need to download the current version if you want support for figures and subdivided figures. You also need Version 3 and up of mcjCollider which is dated Feb 19, 2019, 2:37 AM

https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45

================================================================================

Introduction

================================================================================

A daz script which uses the mcjCollider plugin for PC and as of 2019 for Macs

to create morphs that let you you or pull an individuat facet

================================================================================

History

================================================================================

February 19th 2019 - 2:51 am Release V3 cleaned up the code a bit

February 19th 2019 - 2:45 am Release V2 forces subd targets to base rez level 0

February 18th 2019 - 7:41 pm Release V1

================================================================================

Installation

================================================================================

install the plugin in your Daz Studio Plugins folder

https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45

installing the script

The zip package is found at the bottom of this page

unzip it in your daz content folder,

typically :

C:\Users\USERNAME\Documents\DAZ 3D\Studio\My Library

once installed, it will appear in your content library, under

The Daz Script will be found in My Library / Scripts / mcasual

Starting with Windows 7 if you right click on the downloaded zip file

and select the [Extract All ....] pop-up menu item

you simply browse up to your Daz Studio Content Folder

and the files will fall in the proper folder

================================================================================

Use

================================================================================

Note: if your target is in subdivided High resolution mode the script will force it

into base resolution subd level 0 because mcjCollider only knows how to handle

standard non-subdivided meshes

Your scene must contain an mcjCollider node

If you already have mcjCollider installed in your Daz Studio plugins folder

make sure you get the latest version of mcjCollider, which is Genesis 3/8 compatible

https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45

This collider must have been created with the the target object selected

in my example, i selected the hat then created the mcjCollider node

When the script starts, the collider gets moved to your point of view ( camera ).

The collider is like an arrow and is pointing straight ahead.+

The collider appears on-screen as a white cross in the center of your view.

If you plan on making many facet-pull morphs

exit the script, create a camera for this point of view

parent the collider to that camera

you now have a cross-haired camera so you can aim at the facet you want.

When you press the 'Shoot' button, the collider will be projected on the target

The script will add a morph channel to the target node

The name of the morph channel will include the facet id

This morph lets you push or pull the facet that got hit

The default prefix for the facet morph name is "PushPull", you can change this to something else

we recommend you use only alpha-numeric and space characters for the prefix to avoid problems

Last Minute addition : remain in the higher dimension

You can control the camera rotation , and therefore the aim of the collider without leaving the script

Last Minute addition : One Morph To Rule Them All

There is now a button labeled "Shoot facet add to common morph"

if you use this button, instead of creating a morph named PushPull111 which only moves Facet 111

the morph deltas for facet 111 will be added to the common morph named PushPull

In the example below you can see i made a morph that moves 4 facets at once

//===================================================================

License

//===================================================================

// by mCasual/Jacques

//===================================================================

// Copyright (c) <2018> <mCasual/Jacques>

//===================================================================

// by mCasual/Jacques

// You can use this software freely for personal or commercial use.

// You may not resell, sub-license or rent this software in any way.

// You may credit this software to mCasual/Jacques

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,

// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES

// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND

// NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS

// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN

// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN

// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE

// SOFTWARE.

//===================================================================