Repository navigation
Update deformer.py - #650
Closed
evilbeanz13 wants to merge 1 commit into
Closed
evilbeanz13 wants to merge 1 commit into
evilbeanz13 wants to merge 1 commit into
Conversation
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
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.