Skocz do zawartości
View in the app

A better way to browse. Learn more.

Max3D.pl

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Napisano

Witam, tak jak w temacie. Czy jest mozliwosc, aby przelaczac transform constraint (opcje komponentu vertex) miedzy off i edge za pomoca skrotu klawiszowego?

Dzieki za pomoc :)

  • Odpowiedzi 4
  • Wyświetleń 1,5k
  • Created
  • Ostatniej odpowiedzi

Top Posters In This Topic

Napisano

Nie widzę u siebie takich opcji w transform constraint (jak rozumiem chodzi o ten z menu nConstaint), za to jest parametr enable.

Szybki kod na szelf, czy pod klawisz, przełączający tę opcję:

 

 

string $selekcja[] = `ls -os`;

for ($selektor in $selekcja)

{

string $shapes[] = `listRelatives -s $selektor`;

 

if (`attributeExists "enable" $shapes[0]`) setAttr (($shapes[0] + ".enable"), !`getAttr ($shapes[0] + ".enable")`);

else if (`attributeExists "enable" $selektor`) setAttr (($selektor + ".enable"), !`getAttr ($selektor + ".enable")`);

else warning ("To nie dynamic constraint!\n");

}

Napisano
  • Autor

Dzieki za odpowiedz.

Zle opisalem problem. W ramach sprecyzowania - mam problem z move tool > tool settings > transform constraint (zdjecie pogladowe w zalaczniku).

Skopiowalem skrypt, ktory napisales i niestety nie dziala (albo ja zle go uruchamiam :p).

 

Pozdrawiam

Edytowane przez Herman753

Napisano

Hah, rzeczywiście, kompletnie się nie zrozumieliśmy.

Sądziłem, że chodzi Ci o opcje transform dynamic constraints, używanych do przypinania cloth.

 

Żeby przełączać klawiszem tę opcję, podepnij sobie taki kod (działa na wszystkie narzędzia translate, rotate, scale):

 

if (`xformConstraint -q -type` == "none")

setXformConstraint "edge";

else setXformConstraint "none";

 

albo wersja z powiadamianiem na ekranie o włączeniu:

if (`xformConstraint -q -type` == "none")

{ setXformConstraint "edge"; inViewMessage -smg "Edge constrained." -fade -pos topCenter;}

else { setXformConstraint "none"; inViewMessage -smg "Not constrained." -fade -pos topCenter;}

 

 

Możesz też ustawić chwilowe działanie opcji constraint.

Żeby tego dokonać, w hot key editorze pod akcję 'press' wpisz:

setXformConstraint "edge"

a pod 'release': setXformConstraint "none"

 

Na czas wciśnięcia wybranego klawisza właczy się ta opcja.

 

Pozdrawiam.

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.