Skip to content

Update deformer.py - #650

Closed
evilbeanz13 wants to merge 1 commit into
mgear-dev:masterfrom
evilbeanz13:master
Closed

evilbeanz13 wants to merge 1 commit into
mgear-dev:masterfrom
evilbeanz13:master

Conversation

@evilbeanz13

Copy link
Copy Markdown

Description of Changes

updated function create_proximity_wrap to include the optional argument to change the wrap mode,
its an optional int variable set to 1, which is the usual surface wrap mode.

From work it was very annoying to find that I could not simply just change the wrap mode with the existing function and had to put in a request to update the studio's local version.

Testing Done

These are changes I have done to the local version at Sunrise Animation and we have used it from April of this year.

Related Issue(s)

Please link the related issues.

updated function create_proximity_wrap to include the optional argument to change the wrap mode,
miquelcampos added a commit that referenced this pull request Oct 8, 2026
…port tool

Export proximityWrap deformers to .pxw files (JSON) and rebuild them: node
settings and falloff ramp, every driver with its own settings and falloff
ramp, driving connections remapped to the rebuilt driver indices, affected
geometry, membership, sparse weights and the deformer order mode (Current
/ Front of chain / Last). Missing drivers are skipped, a proximity wrap
without drivers is skipped, and the import is one undo step. Drivers are
bound again at their shape, so import at bind pose.

- Core: create_proximity_wrap gains an optional trailing wrap_mode
  argument (index or name, Maya's default kept when not given); fully
  backward compatible, still on pymaya. Supersedes PR #650.
- Core: add_proximity_wrap_drivers (same addDriver/addDrivers fallback
  order, returns the new indices), get_proximity_wrap_drivers and
  get_plug_source_shape (also used by Shrink Wrap IO)
- Core: attribute.get_ramp / set_ramp for float ramp attributes
- Core: deformer_io: structured {multi: {old: new}} remap in
  restore_input_connections (connections of elements not rebuilt are
  skipped), get_attrs / set_attrs accept multi element plugs, set_attrs
  lists the stored attributes the node doesn't have
- Shifter: Custom Step: Import Proximity Wrap Configuration template
- Menu entry with a new icon, docs, release notes and tests
@miquelcampos

Copy link
Copy Markdown
Member

superseded by 28b2598 ("Supersedes PR #650"; wrap_mode already exists).
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants